set_auth_callback


Description:

public void set_auth_callback (owned AuthDomainDigestAuthCallback callback)

Sets the callback that this will use to authenticate incoming requests.

For each request containing authorization, this will invoke the callback, and then either accept or reject the request based on callback's return value.

You can also set the auth callback by setting the [property@AuthDomainDigest:auth-callback] and [property@AuthDomainDigest:auth-data] properties, which can also be used to set the callback at construct time.

Parameters:

this

the domain

callback

the callback

dnotify

destroy notifier to free user_data when this is destroyed

user_data

data to pass to auth_callback




2022 vala-language.org