gi-soup-2.4.11: 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.Session

Contents

Description

 

Synopsis

Exported types

newtype Session Source #

Constructors

Session (ManagedPtr Session) 

Instances

GObject Session Source # 
IsObject Session Source # 
IsSession Session Source # 
((~) * info (ResolveSessionMethod t Session), MethodInfo * info Session p) => IsLabel t (Session -> p) Source # 

Methods

fromLabel :: Proxy# Symbol t -> Session -> p #

((~) * info (ResolveSessionMethod t Session), MethodInfo * info Session p) => IsLabelProxy t (Session -> p) Source # 

Methods

fromLabelProxy :: Proxy Symbol t -> Session -> p #

HasAttributeList * Session Source # 
type AttributeList Session Source # 
type SignalList Session Source # 

Methods

abort

data SessionAbortMethodInfo Source #

Instances

((~) * signature (m ()), MonadIO m, IsSession a) => MethodInfo * SessionAbortMethodInfo a signature Source # 

sessionAbort Source #

Arguments

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

session: the session

-> m () 

Cancels all pending requests in session and closes all idle persistent connections.

The message cancellation has the same semantics as with sessionCancelMessage; asynchronous requests on a SessionAsync will have their callback called before sessionAbort returns. Requests on a plain Session will not.

addFeature

data SessionAddFeatureMethodInfo Source #

Instances

((~) * signature (b -> m ()), MonadIO m, IsSession a, IsSessionFeature b) => MethodInfo * SessionAddFeatureMethodInfo a signature Source # 

sessionAddFeature Source #

Arguments

:: (HasCallStack, MonadIO m, IsSession a, IsSessionFeature b) 
=> a

session: a Session

-> b

feature: an object that implements SessionFeature

-> m () 

Adds feature's functionality to session. You can also add a feature to the session at construct time by using the SOUP_SESSION_ADD_FEATURE property.

See the main Session documentation for information on what features are present in sessions by default.

Since: 2.24

addFeatureByType

sessionAddFeatureByType Source #

Arguments

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

session: a Session

-> GType

featureType: a GType

-> m () 

If featureType is the type of a class that implements SessionFeature, this creates a new feature of that type and adds it to session as with sessionAddFeature. You can use this when you don't need to customize the new feature in any way.

If featureType is not a SessionFeature type, this gives each existing feature on session the chance to accept featureType as a "subfeature". This can be used to add new Auth or Request types, for instance.

You can also add a feature to the session at construct time by using the SOUP_SESSION_ADD_FEATURE_BY_TYPE property.

See the main Session documentation for information on what features are present in sessions by default.

Since: 2.24

cancelMessage

sessionCancelMessage Source #

Arguments

:: (HasCallStack, MonadIO m, IsSession a, IsMessage b) 
=> a

session: a Session

-> b

msg: the message to cancel

-> Word32

statusCode: status code to set on msg (generally StatusCancelled)

-> m () 

Causes session to immediately finish processing msg (regardless of its current state) with a final status_code of statusCode. You may call this at any time after handing msg off to session; if session has started sending the request but has not yet received the complete response, then it will close the request's connection. Note that with requests that have side effects (eg, <literal>POST</literal>, <literal>PUT</literal>, <literal>DELETE</literal>) it is possible that you might cancel the request after the server acts on it, but before it returns a response, leaving the remote resource in an unknown state.

If the message is cancelled while its response body is being read, then the response body in msg will be left partially-filled-in. The response headers, on the other hand, will always be either empty or complete.

Beware that with the deprecated SessionAsync, messages queued with sessionQueueMessage will have their callbacks invoked before sessionCancelMessage returns. The plain Session does not have this behavior; cancelling an asynchronous message will merely queue its callback to be run after returning to the main loop.

getAsyncContext

sessionGetAsyncContext Source #

Arguments

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

session: a Session

-> m (Maybe MainContext)

Returns: session's MainContext, which may be Nothing

Gets session's Session:async-context. This does not add a ref to the context, so you will need to ref it yourself if you want it to outlive its session.

For a modern Session, this will always just return the thread-default MainContext, and so is not especially useful.

getFeature

sessionGetFeature Source #

Arguments

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

session: a Session

-> GType

featureType: the GType of the feature to get

-> m (Maybe SessionFeature)

Returns: a SessionFeature, or Nothing. The feature is owned by session.

Gets the first feature in session of type featureType. For features where there may be more than one feature of a given type, use sessionGetFeatures.

Since: 2.26

getFeatureForMessage

sessionGetFeatureForMessage Source #

Arguments

:: (HasCallStack, MonadIO m, IsSession a, IsMessage b) 
=> a

session: a Session

-> GType

featureType: the GType of the feature to get

-> b

msg: a Message

-> m (Maybe SessionFeature)

Returns: a SessionFeature, or Nothing. The feature is owned by session.

Gets the first feature in session of type featureType, provided that it is not disabled for msg. As with sessionGetFeature, this should only be used for features where featureType is only expected to match a single feature. In particular, if there are two matching features, and the first is disabled on msg, and the second is not, then this will return Nothing, not the second feature.

Since: 2.28

getFeatures

sessionGetFeatures Source #

Arguments

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

session: a Session

-> GType

featureType: the GType of the class of features to get

-> m [SessionFeature]

Returns: a list of features. You must free the list, but not its contents

Generates a list of session's features of type featureType. (If you want to see all features, you can pass SOUP_TYPE_SESSION_FEATURE for featureType.)

Since: 2.26

hasFeature

sessionHasFeature Source #

Arguments

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

session: a Session

-> GType

featureType: the GType of the class of features to check for

-> m Bool

Returns: True or False

Tests if session has at a feature of type featureType (which can be the type of either a SessionFeature, or else a subtype of some class managed by another feature, such as Auth or Request).

Since: 2.42

new

sessionNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m Session

Returns: the new session.

Creates a Session with the default options.

Since: 2.42

pauseMessage

data SessionPauseMessageMethodInfo Source #

Instances

((~) * signature (b -> m ()), MonadIO m, IsSession a, IsMessage b) => MethodInfo * SessionPauseMessageMethodInfo a signature Source # 

sessionPauseMessage Source #

Arguments

:: (HasCallStack, MonadIO m, IsSession a, IsMessage b) 
=> a

session: a Session

-> b

msg: a Message currently running on session

-> m () 

Pauses HTTP I/O on msg. Call sessionUnpauseMessage to resume I/O.

This may only be called for asynchronous messages (those sent on a SessionAsync or using sessionQueueMessage).

prefetchDns

sessionPrefetchDns Source #

Arguments

:: (HasCallStack, MonadIO m, IsSession a, IsCancellable b) 
=> a

session: a Session

-> Text

hostname: a hostname to be resolved

-> Maybe b

cancellable: a Cancellable object, or Nothing

-> Maybe AddressCallback

callback: callback to call with the result, or Nothing

-> m () 

Tells session that an URI from the given hostname may be requested shortly, and so the session can try to prepare by resolving the domain name in advance, in order to work more quickly once the URI is actually requested.

If cancellable is non-Nothing, it can be used to cancel the resolution. callback will still be invoked in this case, with a status of StatusCancelled.

Since: 2.38

prepareForUri

sessionPrepareForUri Source #

Arguments

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

session: a Session

-> URI

uri: a URI which may be required

-> m () 

Deprecated: (Since version 2.38)use sessionPrefetchDns instead

Tells session that uri may be requested shortly, and so the session can try to prepare (resolving the domain name, obtaining proxy address, etc.) in order to work more quickly once the URI is actually requested.

Since: 2.30

queueMessage

sessionQueueMessage Source #

Arguments

:: (HasCallStack, MonadIO m, IsSession a, IsMessage b) 
=> a

session: a Session

-> b

msg: the message to queue

-> Maybe SessionCallback

callback: a SessionCallback which will be called after the message completes or when an unrecoverable error occurs.

-> m () 

Queues the message msg for asynchronously sending the request and receiving a response in the current thread-default MainContext. If msg has been processed before, any resources related to the time it was last sent are freed.

Upon message completion, the callback specified in callback will be invoked. If after returning from this callback the message has not been requeued, msg will be unreffed.

(The behavior above applies to a plain Session; if you are using SessionAsync or SessionSync, then the MainContext that is used depends on the settings of Session:async-context and Session:use-thread-context, and for SessionSync, the message will actually be sent and processed in another thread, with only the final callback occurring in the indicated MainContext.)

Contrast this method with sessionSendAsync, which also asynchronously sends a message, but returns before reading the response body, and allows you to read the response via a InputStream.

redirectMessage

sessionRedirectMessage Source #

Arguments

:: (HasCallStack, MonadIO m, IsSession a, IsMessage b) 
=> a

session: the session

-> b

msg: a Message that has received a 3xx response

-> m Bool

Returns: True if a redirection was applied, False if not (eg, because there was no Location header, or it could not be parsed).

Updates msg's URI according to its status code and "Location" header, and requeues it on session. Use this when you have set MessageFlagsNoRedirect on a message, but have decided to allow a particular redirection to occur, or if you want to allow a redirection that Session will not perform automatically (eg, redirecting a non-safe method such as DELETE).

If msg's status code indicates that it should be retried as a GET request, then msg will be modified accordingly.

If msg has already been redirected too many times, this will cause it to fail with StatusTooManyRedirects.

Since: 2.38

removeFeature

sessionRemoveFeature Source #

Arguments

:: (HasCallStack, MonadIO m, IsSession a, IsSessionFeature b) 
=> a

session: a Session

-> b

feature: a feature that has previously been added to session

-> m () 

Removes feature's functionality from session.

Since: 2.24

removeFeatureByType

sessionRemoveFeatureByType Source #

Arguments

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

session: a Session

-> GType

featureType: a GType

-> m () 

Removes all features of type featureType (or any subclass of featureType) from session. You can also remove standard features from the session at construct time by using the SOUP_SESSION_REMOVE_FEATURE_BY_TYPE property.

Since: 2.24

request

data SessionRequestMethodInfo Source #

Instances

((~) * signature (Text -> m Request), MonadIO m, IsSession a) => MethodInfo * SessionRequestMethodInfo a signature Source # 

sessionRequest Source #

Arguments

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

session: a Session

-> Text

uriString: a URI, in string form

-> m Request

Returns: a new Request, or Nothing on error. (Can throw GError)

Creates a Request for retrieving uriString.

Since: 2.42

requestHttp

sessionRequestHttp Source #

Arguments

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

session: a Session

-> Text

method: an HTTP method

-> Text

uriString: a URI, in string form

-> m RequestHTTP

Returns: a new RequestHTTP, or Nothing on error. (Can throw GError)

Creates a Request for retrieving uriString, which must be an "http" or "https" URI (or another protocol listed in session's Session:http-aliases or Session:https-aliases).

Since: 2.42

requestHttpUri

sessionRequestHttpUri Source #

Arguments

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

session: a Session

-> Text

method: an HTTP method

-> URI

uri: a URI representing the URI to retrieve

-> m RequestHTTP

Returns: a new RequestHTTP, or Nothing on error. (Can throw GError)

Creates a Request for retrieving uri, which must be an "http" or "https" URI (or another protocol listed in session's Session:http-aliases or Session:https-aliases).

Since: 2.42

requestUri

sessionRequestUri Source #

Arguments

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

session: a Session

-> URI

uri: a URI representing the URI to retrieve

-> m Request

Returns: a new Request, or Nothing on error. (Can throw GError)

Creates a Request for retrieving uri.

Since: 2.42

requeueMessage

sessionRequeueMessage Source #

Arguments

:: (HasCallStack, MonadIO m, IsSession a, IsMessage b) 
=> a

session: a Session

-> b

msg: the message to requeue

-> m () 

This causes msg to be placed back on the queue to be attempted again.

send

data SessionSendMethodInfo Source #

Instances

((~) * signature (b -> Maybe c -> m InputStream), MonadIO m, IsSession a, IsMessage b, IsCancellable c) => MethodInfo * SessionSendMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy SessionSendMethodInfo a -> signature -> s #

sessionSend Source #

Arguments

:: (HasCallStack, MonadIO m, IsSession a, IsMessage b, IsCancellable c) 
=> a

session: a Session

-> b

msg: a Message

-> Maybe c

cancellable: a Cancellable

-> m InputStream

Returns: a InputStream for reading the response body, or Nothing on error. (Can throw GError)

Synchronously sends msg and waits for the beginning of a response. On success, a InputStream will be returned which you can use to read the response body. ("Success" here means only that an HTTP response was received and understood; it does not necessarily mean that a 2xx class status code was received.)

If non-Nothing, cancellable can be used to cancel the request; sessionSend will return a IOErrorEnumCancelled error. Note that with requests that have side effects (eg, <literal>POST</literal>, <literal>PUT</literal>, <literal>DELETE</literal>) it is possible that you might cancel the request after the server acts on it, but before it returns a response, leaving the remote resource in an unknown state.

If msg is requeued due to a redirect or authentication, the initial (3xx/401/407) response body will be suppressed, and sessionSend will only return once a final response has been received.

Contrast this method with sessionSendMessage, which also synchronously sends a Message, but doesn't return until the response has been completely read.

(Note that this method cannot be called on the deprecated SessionAsync subclass.)

Since: 2.42

sendAsync

sessionSendAsync Source #

Arguments

:: (HasCallStack, MonadIO m, IsSession a, IsMessage b, IsCancellable c) 
=> a

session: a Session

-> b

msg: a Message

-> Maybe c

cancellable: a Cancellable

-> Maybe AsyncReadyCallback

callback: the callback to invoke

-> m () 

Asynchronously sends msg and waits for the beginning of a response. When callback is called, then either msg has been sent, and its response headers received, or else an error has occurred. Call sessionSendFinish to get a InputStream for reading the response body.

See sessionSend for more details on the general semantics.

Contrast this method with sessionQueueMessage, which also asynchronously sends a Message, but doesn't invoke its callback until the response has been completely read.

(Note that this method cannot be called on the deprecated SessionSync subclass, and can only be called on SessionAsync if you have set the Session:use-thread-context property.)

Since: 2.42

sendFinish

sessionSendFinish Source #

Arguments

:: (HasCallStack, MonadIO m, IsSession a, IsAsyncResult b) 
=> a

session: a Session

-> b

result: the AsyncResult passed to your callback

-> m InputStream

Returns: a InputStream for reading the response body, or Nothing on error. (Can throw GError)

Gets the response to a sessionSendAsync call and (if successful), returns a InputStream that can be used to read the response body.

Since: 2.42

sendMessage

sessionSendMessage Source #

Arguments

:: (HasCallStack, MonadIO m, IsSession a, IsMessage b) 
=> a

session: a Session

-> b

msg: the message to send

-> m Word32

Returns: the HTTP status code of the response

Synchronously send msg. This call will not return until the transfer is finished successfully or there is an unrecoverable error.

Unlike with sessionQueueMessage, msg is not freed upon return.

(Note that if you call this method on a SessionAsync, it will still use asynchronous I/O internally, running the glib main loop to process the message, which may also cause other events to be processed.)

Contrast this method with sessionSend, which also synchronously sends a message, but returns before reading the response body, and allows you to read the response via a InputStream.

stealConnection

sessionStealConnection Source #

Arguments

:: (HasCallStack, MonadIO m, IsSession a, IsMessage b) 
=> a

session: a Session

-> b

msg: the message whose connection is to be stolen

-> m IOStream

Returns: the IOStream formerly associated with msg (or Nothing if msg was no longer associated with a connection). No guarantees are made about what kind of IOStream is returned.

"Steals" the HTTP connection associated with msg from session. This happens immediately, regardless of the current state of the connection, and msg's callback will not be called. You can steal the connection from a Message signal handler if you need to wait for part or all of the response to be received first.

Calling this function may cause msg to be freed if you are not holding any other reference to it.

Since: 2.50

unpauseMessage

sessionUnpauseMessage Source #

Arguments

:: (HasCallStack, MonadIO m, IsSession a, IsMessage b) 
=> a

session: a Session

-> b

msg: a Message currently running on session

-> m () 

Resumes HTTP I/O on msg. Use this to resume after calling sessionPauseMessage.

If msg is being sent via blocking I/O, this will resume reading or writing immediately. If msg is using non-blocking I/O, then reading or writing won't resume until you return to the main loop.

This may only be called for asynchronous messages (those sent on a SessionAsync or using sessionQueueMessage).

websocketConnectAsync

sessionWebsocketConnectAsync Source #

Arguments

:: (HasCallStack, MonadIO m, IsSession a, IsMessage b, IsCancellable c) 
=> a

session: a Session

-> b

msg: Message indicating the WebSocket server to connect to

-> Maybe Text

origin: origin of the connection

-> Maybe [Text]

protocols: a Nothing-terminated array of protocols supported

-> Maybe c

cancellable: a Cancellable

-> Maybe AsyncReadyCallback

callback: the callback to invoke

-> m () 

Asynchronously creates a WebsocketConnection to communicate with a remote server.

All necessary WebSocket-related headers will be added to msg, and it will then be sent and asynchronously processed normally (including handling of redirection and HTTP authentication).

If the server returns "101 Switching Protocols", then msg's status code and response headers will be updated, and then the WebSocket handshake will be completed. On success, soup_websocket_connect_finish() will return a new WebsocketConnection. On failure it will return a GError.

If the server returns a status other than "101 Switching Protocols", then msg will contain the complete response headers and body from the server's response, and soup_websocket_connect_finish() will return WebsocketErrorNotWebsocket.

Since: 2.50

websocketConnectFinish

sessionWebsocketConnectFinish Source #

Arguments

:: (HasCallStack, MonadIO m, IsSession a, IsAsyncResult b) 
=> a

session: a Session

-> b

result: the AsyncResult passed to your callback

-> m WebsocketConnection

Returns: a new WebsocketConnection, or Nothing on error. (Can throw GError)

Gets the WebsocketConnection response to a sessionWebsocketConnectAsync call and (if successful), returns a SoupWebsockConnection that can be used to communicate with the server.

Since: 2.50

wouldRedirect

sessionWouldRedirect Source #

Arguments

:: (HasCallStack, MonadIO m, IsSession a, IsMessage b) 
=> a

session: a Session

-> b

msg: a Message that has response headers

-> m Bool

Returns: whether msg would be redirected

Checks if msg contains a response that would cause session to redirect it to a new URL (ignoring msg's MessageFlagsNoRedirect flag, and the number of times it has already been redirected).

Since: 2.38

Properties

acceptLanguage

data SessionAcceptLanguagePropertyInfo Source #

Instances

AttrInfo SessionAcceptLanguagePropertyInfo Source # 
type AttrOrigin SessionAcceptLanguagePropertyInfo Source # 
type AttrLabel SessionAcceptLanguagePropertyInfo Source # 
type AttrGetType SessionAcceptLanguagePropertyInfo Source # 
type AttrBaseTypeConstraint SessionAcceptLanguagePropertyInfo Source # 
type AttrSetTypeConstraint SessionAcceptLanguagePropertyInfo Source # 
type AttrAllowedOps SessionAcceptLanguagePropertyInfo Source # 

acceptLanguageAuto

data SessionAcceptLanguageAutoPropertyInfo Source #

Instances

AttrInfo SessionAcceptLanguageAutoPropertyInfo Source # 
type AttrOrigin SessionAcceptLanguageAutoPropertyInfo Source # 
type AttrLabel SessionAcceptLanguageAutoPropertyInfo Source # 
type AttrLabel SessionAcceptLanguageAutoPropertyInfo = "accept-language-auto"
type AttrGetType SessionAcceptLanguageAutoPropertyInfo Source # 
type AttrBaseTypeConstraint SessionAcceptLanguageAutoPropertyInfo Source # 
type AttrSetTypeConstraint SessionAcceptLanguageAutoPropertyInfo Source # 
type AttrAllowedOps SessionAcceptLanguageAutoPropertyInfo Source # 

asyncContext

data SessionAsyncContextPropertyInfo Source #

Instances

AttrInfo SessionAsyncContextPropertyInfo Source # 
type AttrOrigin SessionAsyncContextPropertyInfo Source # 
type AttrLabel SessionAsyncContextPropertyInfo Source # 
type AttrGetType SessionAsyncContextPropertyInfo Source # 
type AttrBaseTypeConstraint SessionAsyncContextPropertyInfo Source # 
type AttrSetTypeConstraint SessionAsyncContextPropertyInfo Source # 
type AttrAllowedOps SessionAsyncContextPropertyInfo Source # 

httpAliases

data SessionHttpAliasesPropertyInfo Source #

Instances

AttrInfo SessionHttpAliasesPropertyInfo Source # 
type AttrOrigin SessionHttpAliasesPropertyInfo Source # 
type AttrLabel SessionHttpAliasesPropertyInfo Source # 
type AttrGetType SessionHttpAliasesPropertyInfo Source # 
type AttrBaseTypeConstraint SessionHttpAliasesPropertyInfo Source # 
type AttrSetTypeConstraint SessionHttpAliasesPropertyInfo Source # 
type AttrAllowedOps SessionHttpAliasesPropertyInfo Source # 

setSessionHttpAliases :: (MonadIO m, IsSession o) => o -> [Text] -> m () Source #

httpsAliases

data SessionHttpsAliasesPropertyInfo Source #

Instances

AttrInfo SessionHttpsAliasesPropertyInfo Source # 
type AttrOrigin SessionHttpsAliasesPropertyInfo Source # 
type AttrLabel SessionHttpsAliasesPropertyInfo Source # 
type AttrGetType SessionHttpsAliasesPropertyInfo Source # 
type AttrBaseTypeConstraint SessionHttpsAliasesPropertyInfo Source # 
type AttrSetTypeConstraint SessionHttpsAliasesPropertyInfo Source # 
type AttrAllowedOps SessionHttpsAliasesPropertyInfo Source # 

setSessionHttpsAliases :: (MonadIO m, IsSession o) => o -> [Text] -> m () Source #

idleTimeout

data SessionIdleTimeoutPropertyInfo Source #

Instances

AttrInfo SessionIdleTimeoutPropertyInfo Source # 
type AttrOrigin SessionIdleTimeoutPropertyInfo Source # 
type AttrLabel SessionIdleTimeoutPropertyInfo Source # 
type AttrGetType SessionIdleTimeoutPropertyInfo Source # 
type AttrBaseTypeConstraint SessionIdleTimeoutPropertyInfo Source # 
type AttrSetTypeConstraint SessionIdleTimeoutPropertyInfo Source # 
type AttrAllowedOps SessionIdleTimeoutPropertyInfo Source # 

localAddress

data SessionLocalAddressPropertyInfo Source #

Instances

AttrInfo SessionLocalAddressPropertyInfo Source # 
type AttrOrigin SessionLocalAddressPropertyInfo Source # 
type AttrLabel SessionLocalAddressPropertyInfo Source # 
type AttrGetType SessionLocalAddressPropertyInfo Source # 
type AttrBaseTypeConstraint SessionLocalAddressPropertyInfo Source # 
type AttrSetTypeConstraint SessionLocalAddressPropertyInfo Source # 
type AttrAllowedOps SessionLocalAddressPropertyInfo Source # 

maxConns

data SessionMaxConnsPropertyInfo Source #

Instances

AttrInfo SessionMaxConnsPropertyInfo Source # 
type AttrOrigin SessionMaxConnsPropertyInfo Source # 
type AttrLabel SessionMaxConnsPropertyInfo Source # 
type AttrGetType SessionMaxConnsPropertyInfo Source # 
type AttrBaseTypeConstraint SessionMaxConnsPropertyInfo Source # 
type AttrSetTypeConstraint SessionMaxConnsPropertyInfo Source # 
type AttrAllowedOps SessionMaxConnsPropertyInfo Source # 

setSessionMaxConns :: (MonadIO m, IsSession o) => o -> Int32 -> m () Source #

maxConnsPerHost

data SessionMaxConnsPerHostPropertyInfo Source #

Instances

AttrInfo SessionMaxConnsPerHostPropertyInfo Source # 
type AttrOrigin SessionMaxConnsPerHostPropertyInfo Source # 
type AttrLabel SessionMaxConnsPerHostPropertyInfo Source # 
type AttrLabel SessionMaxConnsPerHostPropertyInfo = "max-conns-per-host"
type AttrGetType SessionMaxConnsPerHostPropertyInfo Source # 
type AttrBaseTypeConstraint SessionMaxConnsPerHostPropertyInfo Source # 
type AttrSetTypeConstraint SessionMaxConnsPerHostPropertyInfo Source # 
type AttrAllowedOps SessionMaxConnsPerHostPropertyInfo Source # 

proxyResolver

data SessionProxyResolverPropertyInfo Source #

Instances

AttrInfo SessionProxyResolverPropertyInfo Source # 
type AttrOrigin SessionProxyResolverPropertyInfo Source # 
type AttrLabel SessionProxyResolverPropertyInfo Source # 
type AttrGetType SessionProxyResolverPropertyInfo Source # 
type AttrBaseTypeConstraint SessionProxyResolverPropertyInfo Source # 
type AttrSetTypeConstraint SessionProxyResolverPropertyInfo Source # 
type AttrAllowedOps SessionProxyResolverPropertyInfo Source # 

proxyUri

data SessionProxyUriPropertyInfo Source #

Instances

AttrInfo SessionProxyUriPropertyInfo Source # 
type AttrOrigin SessionProxyUriPropertyInfo Source # 
type AttrLabel SessionProxyUriPropertyInfo Source # 
type AttrGetType SessionProxyUriPropertyInfo Source # 
type AttrBaseTypeConstraint SessionProxyUriPropertyInfo Source # 
type AttrSetTypeConstraint SessionProxyUriPropertyInfo Source # 
type AttrAllowedOps SessionProxyUriPropertyInfo Source # 

setSessionProxyUri :: (MonadIO m, IsSession o) => o -> URI -> m () Source #

sslCaFile

data SessionSslCaFilePropertyInfo Source #

Instances

AttrInfo SessionSslCaFilePropertyInfo Source # 
type AttrOrigin SessionSslCaFilePropertyInfo Source # 
type AttrLabel SessionSslCaFilePropertyInfo Source # 
type AttrGetType SessionSslCaFilePropertyInfo Source # 
type AttrBaseTypeConstraint SessionSslCaFilePropertyInfo Source # 
type AttrSetTypeConstraint SessionSslCaFilePropertyInfo Source # 
type AttrAllowedOps SessionSslCaFilePropertyInfo Source # 

setSessionSslCaFile :: (MonadIO m, IsSession o) => o -> Text -> m () Source #

sslStrict

data SessionSslStrictPropertyInfo Source #

Instances

AttrInfo SessionSslStrictPropertyInfo Source # 
type AttrOrigin SessionSslStrictPropertyInfo Source # 
type AttrLabel SessionSslStrictPropertyInfo Source # 
type AttrGetType SessionSslStrictPropertyInfo Source # 
type AttrBaseTypeConstraint SessionSslStrictPropertyInfo Source # 
type AttrSetTypeConstraint SessionSslStrictPropertyInfo Source # 
type AttrAllowedOps SessionSslStrictPropertyInfo Source # 

setSessionSslStrict :: (MonadIO m, IsSession o) => o -> Bool -> m () Source #

sslUseSystemCaFile

data SessionSslUseSystemCaFilePropertyInfo Source #

Instances

AttrInfo SessionSslUseSystemCaFilePropertyInfo Source # 
type AttrOrigin SessionSslUseSystemCaFilePropertyInfo Source # 
type AttrLabel SessionSslUseSystemCaFilePropertyInfo Source # 
type AttrLabel SessionSslUseSystemCaFilePropertyInfo = "ssl-use-system-ca-file"
type AttrGetType SessionSslUseSystemCaFilePropertyInfo Source # 
type AttrBaseTypeConstraint SessionSslUseSystemCaFilePropertyInfo Source # 
type AttrSetTypeConstraint SessionSslUseSystemCaFilePropertyInfo Source # 
type AttrAllowedOps SessionSslUseSystemCaFilePropertyInfo Source # 

timeout

data SessionTimeoutPropertyInfo Source #

Instances

AttrInfo SessionTimeoutPropertyInfo Source # 
type AttrOrigin SessionTimeoutPropertyInfo Source # 
type AttrLabel SessionTimeoutPropertyInfo Source # 
type AttrGetType SessionTimeoutPropertyInfo Source # 
type AttrBaseTypeConstraint SessionTimeoutPropertyInfo Source # 
type AttrSetTypeConstraint SessionTimeoutPropertyInfo Source # 
type AttrAllowedOps SessionTimeoutPropertyInfo Source # 

setSessionTimeout :: (MonadIO m, IsSession o) => o -> Word32 -> m () Source #

tlsDatabase

data SessionTlsDatabasePropertyInfo Source #

Instances

AttrInfo SessionTlsDatabasePropertyInfo Source # 
type AttrOrigin SessionTlsDatabasePropertyInfo Source # 
type AttrLabel SessionTlsDatabasePropertyInfo Source # 
type AttrGetType SessionTlsDatabasePropertyInfo Source # 
type AttrBaseTypeConstraint SessionTlsDatabasePropertyInfo Source # 
type AttrSetTypeConstraint SessionTlsDatabasePropertyInfo Source # 
type AttrAllowedOps SessionTlsDatabasePropertyInfo Source # 

tlsInteraction

data SessionTlsInteractionPropertyInfo Source #

Instances

AttrInfo SessionTlsInteractionPropertyInfo Source # 
type AttrOrigin SessionTlsInteractionPropertyInfo Source # 
type AttrLabel SessionTlsInteractionPropertyInfo Source # 
type AttrGetType SessionTlsInteractionPropertyInfo Source # 
type AttrBaseTypeConstraint SessionTlsInteractionPropertyInfo Source # 
type AttrSetTypeConstraint SessionTlsInteractionPropertyInfo Source # 
type AttrAllowedOps SessionTlsInteractionPropertyInfo Source # 

useNtlm

data SessionUseNtlmPropertyInfo Source #

Instances

AttrInfo SessionUseNtlmPropertyInfo Source # 
type AttrOrigin SessionUseNtlmPropertyInfo Source # 
type AttrLabel SessionUseNtlmPropertyInfo Source # 
type AttrGetType SessionUseNtlmPropertyInfo Source # 
type AttrBaseTypeConstraint SessionUseNtlmPropertyInfo Source # 
type AttrSetTypeConstraint SessionUseNtlmPropertyInfo Source # 
type AttrAllowedOps SessionUseNtlmPropertyInfo Source # 

setSessionUseNtlm :: (MonadIO m, IsSession o) => o -> Bool -> m () Source #

useThreadContext

data SessionUseThreadContextPropertyInfo Source #

Instances

AttrInfo SessionUseThreadContextPropertyInfo Source # 
type AttrOrigin SessionUseThreadContextPropertyInfo Source # 
type AttrLabel SessionUseThreadContextPropertyInfo Source # 
type AttrGetType SessionUseThreadContextPropertyInfo Source # 
type AttrBaseTypeConstraint SessionUseThreadContextPropertyInfo Source # 
type AttrSetTypeConstraint SessionUseThreadContextPropertyInfo Source # 
type AttrAllowedOps SessionUseThreadContextPropertyInfo Source # 

userAgent

data SessionUserAgentPropertyInfo Source #

Instances

AttrInfo SessionUserAgentPropertyInfo Source # 
type AttrOrigin SessionUserAgentPropertyInfo Source # 
type AttrLabel SessionUserAgentPropertyInfo Source # 
type AttrGetType SessionUserAgentPropertyInfo Source # 
type AttrBaseTypeConstraint SessionUserAgentPropertyInfo Source # 
type AttrSetTypeConstraint SessionUserAgentPropertyInfo Source # 
type AttrAllowedOps SessionUserAgentPropertyInfo Source # 

setSessionUserAgent :: (MonadIO m, IsSession o) => o -> Text -> m () Source #

Signals

authenticate

connectionCreated

requestQueued

requestStarted

type SessionRequestStartedCallback = Message -> Socket -> IO () Source #

Deprecated: (Since version 2.50.)Use Message::starting instead.

requestUnqueued

tunneling