gi-soup-2.4.26: Libsoup bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Soup.Objects.AuthDomainBasic

Description

No description available in the introspection data.

Synopsis

Exported types

newtype AuthDomainBasic Source #

Memory-managed wrapper type.

Constructors

AuthDomainBasic (ManagedPtr AuthDomainBasic) 

Instances

Instances details
Eq AuthDomainBasic Source # 
Instance details

Defined in GI.Soup.Objects.AuthDomainBasic

GObject AuthDomainBasic Source # 
Instance details

Defined in GI.Soup.Objects.AuthDomainBasic

ManagedPtrNewtype AuthDomainBasic Source # 
Instance details

Defined in GI.Soup.Objects.AuthDomainBasic

TypedObject AuthDomainBasic Source # 
Instance details

Defined in GI.Soup.Objects.AuthDomainBasic

Methods

glibType :: IO GType

HasParentTypes AuthDomainBasic Source # 
Instance details

Defined in GI.Soup.Objects.AuthDomainBasic

IsGValue (Maybe AuthDomainBasic) Source #

Convert AuthDomainBasic to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Soup.Objects.AuthDomainBasic

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe AuthDomainBasic -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe AuthDomainBasic)

type ParentTypes AuthDomainBasic Source # 
Instance details

Defined in GI.Soup.Objects.AuthDomainBasic

type ParentTypes AuthDomainBasic = '[AuthDomain, Object]

class (GObject o, IsDescendantOf AuthDomainBasic o) => IsAuthDomainBasic o Source #

Type class for types which can be safely cast to AuthDomainBasic, for instance with toAuthDomainBasic.

Instances

Instances details
(GObject o, IsDescendantOf AuthDomainBasic o) => IsAuthDomainBasic o Source # 
Instance details

Defined in GI.Soup.Objects.AuthDomainBasic

toAuthDomainBasic :: (MonadIO m, IsAuthDomainBasic o) => o -> m AuthDomainBasic Source #

Cast to AuthDomainBasic, for types for which this is known to be safe. For general casts, use castTo.

Methods

setAuthCallback

authDomainBasicSetAuthCallback Source #

Arguments

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

domain: the domain

-> AuthDomainBasicAuthCallback

callback: the callback

-> m () 

Sets the callback that domain will use to authenticate incoming requests. For each request containing authorization, domain 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 AUTH_DOMAIN_BASIC_AUTH_CALLBACK and AUTH_DOMAIN_BASIC_AUTH_DATA properties, which can also be used to set the callback at construct time.

Properties

authCallback

clearAuthDomainBasicAuthCallback :: (MonadIO m, IsAuthDomainBasic o) => o -> m () Source #

Set the value of the “auth-callback” property to Nothing. When overloading is enabled, this is equivalent to

clear #authCallback

constructAuthDomainBasicAuthCallback :: (IsAuthDomainBasic o, MonadIO m) => FunPtr C_AuthDomainBasicAuthCallback -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “auth-callback” property. This is rarely needed directly, but it is used by new.

getAuthDomainBasicAuthCallback :: (MonadIO m, IsAuthDomainBasic o) => o -> m (Maybe AuthDomainBasicAuthCallback_WithClosures) Source #

Get the value of the “auth-callback” property. When overloading is enabled, this is equivalent to

get authDomainBasic #authCallback

setAuthDomainBasicAuthCallback :: (MonadIO m, IsAuthDomainBasic o) => o -> FunPtr C_AuthDomainBasicAuthCallback -> m () Source #

Set the value of the “auth-callback” property. When overloading is enabled, this is equivalent to

set authDomainBasic [ #authCallback := value ]

authData

The data to pass to the AuthDomainBasicAuthCallback

constructAuthDomainBasicAuthData :: (IsAuthDomainBasic o, MonadIO m) => Ptr () -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “auth-data” property. This is rarely needed directly, but it is used by new.

getAuthDomainBasicAuthData :: (MonadIO m, IsAuthDomainBasic o) => o -> m (Ptr ()) Source #

Get the value of the “auth-data” property. When overloading is enabled, this is equivalent to

get authDomainBasic #authData

setAuthDomainBasicAuthData :: (MonadIO m, IsAuthDomainBasic o) => o -> Ptr () -> m () Source #

Set the value of the “auth-data” property. When overloading is enabled, this is equivalent to

set authDomainBasic [ #authData := value ]