Server.connectRequestAborted
gulong connectRequestAborted(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.server_message.ServerMessage)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : soup.server.Server)))
&& Parameters!T.length < 3)Connect to RequestAborted signal.
Emitted when processing has failed for a message.
This could mean either that it could not be read (if signalServer::request-read has not been emitted for it yet), or that the response could not be written back (if signalServer::request-read has been emitted but signalServer::request-finished has not been).
message is in an undefined state when this signal is emitted; the signal exists primarily to allow the server to free any state that it may have allocated in signalServer::request-started.
Parameters
callback | signal callback delegate or function to connect void callback(soup.server_message.ServerMessage message, soup.server.Server server) message the message (optional) server 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