use_auth


Description:

[ Version ( since = "2.42" ) ]
public void use_auth (URI uri, Auth auth)

Records that auth is to be used under uri, as though a WWW-Authenticate header had been received at that URI.

This can be used to "preload" this's auth cache, to avoid an extra HTTP round trip in the case where you know ahead of time that a 401 response will be returned.

This is only useful for authentication types where the initial Authorization header does not depend on any additional information from the server. (Eg, Basic or NTLM, but not Digest.)

Parameters:

this

a AuthManager

uri

the URI under which auth is to be used

auth

the Auth to use




2022 vala-language.org