Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- newtype AuthenticationRequest = AuthenticationRequest (ManagedPtr AuthenticationRequest)
- class GObject o => IsAuthenticationRequest o
- toAuthenticationRequest :: (MonadIO m, IsAuthenticationRequest o) => o -> m AuthenticationRequest
- noAuthenticationRequest :: Maybe AuthenticationRequest
- authenticationRequestAuthenticate :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> Maybe Credential -> m ()
- authenticationRequestCanSaveCredentials :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m Bool
- authenticationRequestCancel :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m ()
- authenticationRequestGetHost :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m Text
- authenticationRequestGetPort :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m Word32
- authenticationRequestGetProposedCredential :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m Credential
- authenticationRequestGetRealm :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m Text
- authenticationRequestGetScheme :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m AuthenticationScheme
- authenticationRequestIsForProxy :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m Bool
- authenticationRequestIsRetry :: (HasCallStack, MonadIO m, IsAuthenticationRequest a) => a -> m Bool
- type AuthenticationRequestCancelledCallback = IO ()
- type C_AuthenticationRequestCancelledCallback = Ptr () -> Ptr () -> IO ()
- afterAuthenticationRequestCancelled :: (IsAuthenticationRequest a, MonadIO m) => a -> AuthenticationRequestCancelledCallback -> m SignalHandlerId
- genClosure_AuthenticationRequestCancelled :: AuthenticationRequestCancelledCallback -> IO Closure
- mk_AuthenticationRequestCancelledCallback :: C_AuthenticationRequestCancelledCallback -> IO (FunPtr C_AuthenticationRequestCancelledCallback)
- noAuthenticationRequestCancelledCallback :: Maybe AuthenticationRequestCancelledCallback
- onAuthenticationRequestCancelled :: (IsAuthenticationRequest a, MonadIO m) => a -> AuthenticationRequestCancelledCallback -> m SignalHandlerId
- wrap_AuthenticationRequestCancelledCallback :: AuthenticationRequestCancelledCallback -> Ptr () -> Ptr () -> IO ()
Exported types
newtype AuthenticationRequest Source #
class GObject o => IsAuthenticationRequest o Source #
toAuthenticationRequest :: (MonadIO m, IsAuthenticationRequest o) => o -> m AuthenticationRequest Source #
Methods
authenticate
authenticationRequestAuthenticate Source #
:: (HasCallStack, MonadIO m, IsAuthenticationRequest a) | |
=> a |
|
-> Maybe Credential |
|
-> m () |
Authenticate the AuthenticationRequest
using the Credential
supplied. To continue without credentials, pass Nothing
as credential
.
Since: 2.2
canSaveCredentials
authenticationRequestCanSaveCredentials Source #
:: (HasCallStack, MonadIO m, IsAuthenticationRequest a) | |
=> a |
|
-> m Bool | Returns: |
Determine whether the authentication method associated with this
AuthenticationRequest
should allow the storage of credentials.
This will return False
if webkit doesn't support credential storing
or if private browsing is enabled.
Since: 2.2
cancel
authenticationRequestCancel Source #
:: (HasCallStack, MonadIO m, IsAuthenticationRequest a) | |
=> a |
|
-> m () |
Cancel the authentication challenge. This will also cancel the page loading and result in a
WebView
::load-failed
signal with a NetworkError
of type NetworkErrorCancelled
being emitted.
Since: 2.2
getHost
authenticationRequestGetHost Source #
:: (HasCallStack, MonadIO m, IsAuthenticationRequest a) | |
=> a |
|
-> m Text | Returns: The host of |
Get the host that this authentication challenge is applicable to.
Since: 2.2
getPort
authenticationRequestGetPort Source #
:: (HasCallStack, MonadIO m, IsAuthenticationRequest a) | |
=> a |
|
-> m Word32 | Returns: The port of |
Get the port that this authentication challenge is applicable to.
Since: 2.2
getProposedCredential
authenticationRequestGetProposedCredential Source #
:: (HasCallStack, MonadIO m, IsAuthenticationRequest a) | |
=> a |
|
-> m Credential | Returns: A |
Get the Credential
of the proposed authentication challenge that was
stored from a previous session. The client can use this directly for
authentication or construct their own Credential
.
Since: 2.2
getRealm
authenticationRequestGetRealm Source #
:: (HasCallStack, MonadIO m, IsAuthenticationRequest a) | |
=> a |
|
-> m Text | Returns: The realm of |
Get the realm that this authentication challenge is applicable to.
Since: 2.2
getScheme
authenticationRequestGetScheme Source #
:: (HasCallStack, MonadIO m, IsAuthenticationRequest a) | |
=> a |
|
-> m AuthenticationScheme | Returns: The |
Get the authentication scheme of the authentication challenge.
Since: 2.2
isForProxy
authenticationRequestIsForProxy Source #
:: (HasCallStack, MonadIO m, IsAuthenticationRequest a) | |
=> a |
|
-> m Bool | Returns: |
Determine whether the authentication challenge is associated with a proxy server rather than an "origin" server.
Since: 2.2
isRetry
authenticationRequestIsRetry Source #
:: (HasCallStack, MonadIO m, IsAuthenticationRequest a) | |
=> a |
|
-> m Bool | Returns: |
Determine whether this this is a first attempt or a retry for this authentication challenge.
Since: 2.2
Signals
cancelled
type AuthenticationRequestCancelledCallback = IO () Source #
afterAuthenticationRequestCancelled :: (IsAuthenticationRequest a, MonadIO m) => a -> AuthenticationRequestCancelledCallback -> m SignalHandlerId Source #
genClosure_AuthenticationRequestCancelled :: AuthenticationRequestCancelledCallback -> IO Closure Source #
mk_AuthenticationRequestCancelledCallback :: C_AuthenticationRequestCancelledCallback -> IO (FunPtr C_AuthenticationRequestCancelledCallback) Source #
onAuthenticationRequestCancelled :: (IsAuthenticationRequest a, MonadIO m) => a -> AuthenticationRequestCancelledCallback -> m SignalHandlerId Source #
wrap_AuthenticationRequestCancelledCallback :: AuthenticationRequestCancelledCallback -> Ptr () -> Ptr () -> IO () Source #