Message.connectAuthenticate

gulong connectAuthenticate(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] : soup.auth.Auth))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == bool))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : soup.message.Message))) && Parameters!T.length < 4)

Connect to Authenticate signal.

Emitted when the message requires authentication.

If credentials are available call [soup.auth.Auth.authenticate] on auth. If these credentials fail, the signal will be emitted again, with retrying set to true, which will continue until you return without calling [soup.auth.Auth.authenticate] on auth.

Note that this may be emitted before msg's body has been fully read.

You can authenticate auth asynchronously by calling [gobject.object.ObjectWrap.ref_] on auth and returning true. The operation will complete once either [soup.auth.Auth.authenticate] or [soup.auth.Auth.cancel] are called.

Parameters

callbacksignal callback delegate or function to connect bool callback(soup.auth.Auth auth, bool retrying, soup.message.Message message) auth the #SoupAuth to authenticate (optional) retrying true if this is the second (or later) attempt (optional) message the instance the signal is connected to (optional) Returns true to stop other handlers from being invoked or false to propagate the event further.
afterYes.After to execute callback after default handler, No.After to execute before (default)

Returns

Signal ID