[webkit-dev] How to cancel a resource request
zaheer ahmad
zaheer.mot at gmail.com
Fri Oct 23 06:24:04 PDT 2009
hi,
ResourceLoader has a cancel api. so i think you can do the following
add addtl parameter to dispatchDidReceiveResponse to indicate if you should
cancel the resp
and do a loader->cancel() based on that.
Thanks,
Zaheer
On Thu, Oct 22, 2009 at 1:48 PM, Jaroslav Gresula <
jgresula.LEAVE-THIS-OUT at gmail.com> wrote:
> Hi,
>
> In my WebKit port (based on the GTK port) I would like to cancel a
> resource request depending on the resource length or its MIME type.
>
> I thought, dispatchDidReceiveResponse(DocumentLoader*, ...) in my
> WebCore::FrameLoaderClient implementation could be a good place for such
> action as I can retrieve the length and the MIME type from the
> ResourceResponse argument there. However I did not find the way how to
> cancel the request.
>
> Any help would be appreciated.
>
> Thanks,
> --
> Jarda
> http://jagpdf.org
>
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20091023/8f92d4ab/attachment.html>
More information about the webkit-dev
mailing list