[webkit-gtk] How to connect SoupMessage signals from "resource-request-starting" ?
emmanuel.rodriguez at gmail.com
Sun May 15 14:44:39 PDT 2011
I'm trying to write a simple command line program that will list all
resources for a given page and that will print some simple metrics
(download time, file size, etc).
I though that I could achieve this by connecting to the "finished"
signal that SoupMessage exposes in order to track when the http
request was finished but this doesn't work as the signal is never
I have attached a sample program that shows what I'm trying to do. In
a nutshell, I'm connecting to the SoupMessage of the WebKitWebResource
that's passed as an argument to the signal
"resource-request-starting". I tried connecting to various signals and
property change notifications of the SoupMessage and my callbacks are
never called. From what I can see the instance that's accessible from
the signal's callback is not the one used by WebKit for doing the
actual HTTP request.
I'm obviously doing something wrong but I can't figure out what.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2584 bytes
Desc: not available
More information about the webkit-gtk