connectGotHeaders
fun connectGotHeaders(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>
Emitted after receiving the Status-Line and response headers.
See also method@Message.add_header_handler and method@Message.add_status_code_handler, 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 signal@Message::got-body handler rather than a signal@Message::got_headers handler, so that the existing HTTP connection can be reused.)
Parameters
connectFlags
A combination of ConnectFlags
handler
the Callback to connect