Message.connectGotHeaders
gulong connectGotHeaders(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : soup.message.Message)))
&& Parameters!T.length < 2)Connect to GotHeaders signal.
Emitted after receiving the Status-Line and response headers.
See also [soup.message.Message.addHeaderHandler] and [soup.message.Message.addStatusCodeHandler], which can be used to connect to a subset of emissions of this signal.
If you cancel or requeue msg while processing this signal, then the current HTTP I/O will be stopped after this signal emission finished, and msg's connection will be closed. (If you need to requeue a message--eg, after handling authentication or redirection--it is usually better to requeue it from a signalMessage::got-body handler rather than a signalMessage::got_headers handler, so that the existing HTTP connection can be reused.)
Parameters
callback | signal callback delegate or function to connect void callback(soup.message.Message message) message the instance the signal is connected to (optional) |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID