WebPage.connectSendRequest
gulong connectSendRequest(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == bool)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : webkitwebprocessextension.urirequest.URIRequest)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : webkitwebprocessextension.uriresponse.URIResponse)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : webkitwebprocessextension.web_page.WebPage)))
&& Parameters!T.length < 4)Connect to SendRequest signal.
This signal is emitted when request is about to be sent to the server. This signal can be used to modify the #WebKitURIRequest that will be sent to the server. You can also cancel the resource load operation by connecting to this signal and returning true.
In case of a server redirection this signal is emitted again with the request argument containing the new request to be sent to the server due to the redirection and the redirected_response parameter containing the response received by the server for the initial request.
Modifications to the #WebKitURIRequest and its associated #SoupMessageHeaders will be taken into account when the request is sent over the network.
Parameters
callback | signal callback delegate or function to connect bool callback(webkitwebprocessextension.urirequest.URIRequest request, webkitwebprocessextension.uriresponse.URIResponse redirectedResponse, webkitwebprocessextension.web_page.WebPage webPage) request a #WebKitURIRequest (optional) redirectedResponse a #WebKitURIResponse, or null (optional) webPage the instance the signal is connected to (optional) Returns true to stop other handlers from being invoked for the event. false to continue emission of the event. |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID