[webkit-dev] How to get mimeType for decidePolicyForResponse ??
naren.mehra at gmail.com
naren.mehra at gmail.com
Tue May 24 20:33:44 PDT 2011
Thanks for the response, Sam.
On Tue, May 24, 2011 at 10:19 PM, Sam Weinig <weinig at apple.com> wrote:
> It depends what port you are using,
I am using WebKit2-GTK port.
Any idea, how it can be done in that ?
-- Naren
> 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, 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