Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype AuthDomainBasic = AuthDomainBasic (ManagedPtr AuthDomainBasic)
- class (GObject o, IsDescendantOf AuthDomainBasic o) => IsAuthDomainBasic o
- toAuthDomainBasic :: (MonadIO m, IsAuthDomainBasic o) => o -> m AuthDomainBasic
- noAuthDomainBasic :: Maybe AuthDomainBasic
- authDomainBasicSetAuthCallback :: (HasCallStack, MonadIO m, IsAuthDomainBasic a) => a -> AuthDomainBasicAuthCallback -> m ()
- clearAuthDomainBasicAuthCallback :: (MonadIO m, IsAuthDomainBasic o) => o -> m ()
- constructAuthDomainBasicAuthCallback :: IsAuthDomainBasic o => FunPtr C_AuthDomainBasicAuthCallback -> IO (GValueConstruct o)
- getAuthDomainBasicAuthCallback :: (MonadIO m, IsAuthDomainBasic o) => o -> m (Maybe AuthDomainBasicAuthCallback_WithClosures)
- setAuthDomainBasicAuthCallback :: (MonadIO m, IsAuthDomainBasic o) => o -> FunPtr C_AuthDomainBasicAuthCallback -> m ()
- constructAuthDomainBasicAuthData :: IsAuthDomainBasic o => Ptr () -> IO (GValueConstruct o)
- getAuthDomainBasicAuthData :: (MonadIO m, IsAuthDomainBasic o) => o -> m (Ptr ())
- setAuthDomainBasicAuthData :: (MonadIO m, IsAuthDomainBasic o) => o -> Ptr () -> m ()
Exported types
newtype AuthDomainBasic Source #
Memory-managed wrapper type.
Instances
GObject AuthDomainBasic Source # | |
Defined in GI.Soup.Objects.AuthDomainBasic gobjectType :: IO GType # | |
HasParentTypes AuthDomainBasic Source # | |
Defined in GI.Soup.Objects.AuthDomainBasic | |
type ParentTypes AuthDomainBasic Source # | |
Defined in GI.Soup.Objects.AuthDomainBasic |
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
(GObject o, IsDescendantOf AuthDomainBasic o) => IsAuthDomainBasic o Source # | |
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
.
noAuthDomainBasic :: Maybe AuthDomainBasic Source #
A convenience alias for Nothing
:: Maybe
AuthDomainBasic
.
Methods
setAuthCallback
authDomainBasicSetAuthCallback Source #
:: (HasCallStack, MonadIO m, IsAuthDomainBasic a) | |
=> a |
|
-> AuthDomainBasicAuthCallback |
|
-> 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 => FunPtr C_AuthDomainBasicAuthCallback -> IO (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 => Ptr () -> IO (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 ]