gi-soup-2.4.14: Libsoup bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Soup.Objects.AuthManager

Contents

Description

 

Synopsis

Exported types

Methods

clearCachedCredentials

authManagerClearCachedCredentials Source #

Arguments

:: (HasCallStack, MonadIO m, IsAuthManager a) 
=> a

manager: a AuthManager

-> m () 

Clear all credentials cached by manager

Since: 2.58

useAuth

authManagerUseAuth Source #

Arguments

:: (HasCallStack, MonadIO m, IsAuthManager a, IsAuth b) 
=> a

manager: a AuthManager

-> URI

uri: the URI under which auth is to be used

-> b

auth: the Auth to use

-> m () 

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" manager'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.)

Since: 2.42

Signals

authenticate