[wpe-webkit] API to intercept URL requests
Michael Pantazoglou
michael.pantazoglou at oceanbluesoftware.co.uk
Mon Apr 18 00:32:37 PDT 2022
I conducted my own research and found out that the public API does not
provide for such adaptations in the network process. For anyone interested,
I achieved my goal by subclassing the NetworkDataTask class of the WPE
NetworkProcess to obtain access to the URL download process. Within my
sublclass, I used the inherited NetworkDataTaskClient member variable of
NetworkDataTask to eventually pass the downloaded (and modified) response
data to the WebProcess.
On Tue, 22 Mar 2022 at 15:14, Michael Pantazoglou <
michael.pantazoglou at oceanbluesoftware.co.uk> wrote:
> Hi all,
>
> I am working with WPE 2.2 and I am looking for a proper way to intercept
> URL requests so that I can use my own load mechanism if the given URL
> matches certain criteria. Along the same line, I am interested in
> optionally making changes to the received response before passing it to the
> WebKit engine for further processing and/or storage.
>
> Is there any public API that facilitates the above? If yes, is there any
> pointer to sample code that I can look into? If not, what would be the best
> way to implement this?
>
> Cheers,
> Michael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-wpe/attachments/20220418/59d2bcd7/attachment.htm>
More information about the webkit-wpe
mailing list