onAuthenticate

fun onAuthenticate(    connectFlags: <Error class: unknown class> = ConnectFlags(0u),     handler: (auth: Auth, retrying: Boolean) -> Boolean): <Error class: unknown class>(source)

Emitted when the message requires authentication.

If credentials are available call method@Auth.authenticate on

Parameters

connectFlags

a combination of ConnectFlags

handler

the Callback to connect. Params: auth the #SoupAuth to authenticate; retrying true if this is the second (or later) attempt. Returns true to stop other handlers from being invoked or false to propagate the event further.