[webkit-dev] How to get mimeType for decidePolicyForResponse ??

Sam Weinig weinig at apple.com
Tue May 24 09:49:19 PDT 2011

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.


On May 24, 2011, at 5:42 AM, naren.mehra at gmail.com 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
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

More information about the webkit-dev mailing list