It depends what port you are using, but the general idea is that you should be able to get a MIME type from the WKURLResponseRef. On the Mac for instance, we can get an NSURLReponse out of a WKURLResponseRef using WKURLResponseCopyNSURLResponse and copy the MIME type from that.
-Sam On May 24, 2011, at 5:42 AM, [email protected] wrote: > Hi, > > I am trying to implement the functionality for decidePolicyForResponse > function. > For that, I require the mimeType based on the WKURLResponseRef. > > In previous implementation of WebKit we used to pass the mimeType > explicitly as one of the parameters of the callback function. > But it has been changed, and so I am not able to find out a way to do > that and got stuck. > > Can any of you tell me how it can be done or point me to a sample code > where its done ?? > > Regards, > Naren > _______________________________________________ > webkit-dev mailing list > [email protected] > http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev _______________________________________________ webkit-dev mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

