gi-soup-0.2.52.12: Soup 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.Structs.ClientContext

Contents

Description

A #SoupClientContext provides additional information about the client making a particular request. In particular, you can use soup_client_context_get_auth_domain() and soup_client_context_get_auth_user() to determine if HTTP authentication was used successfully.

soup_client_context_get_remote_address() and/or soup_client_context_get_host() can be used to get information for logging or debugging purposes. soup_client_context_get_gsocket() may also be of use in some situations (eg, tracking when multiple requests are made on the same connection).

Synopsis

Exported types

Methods

clientContextGetAddress

clientContextGetAddress :: MonadIO m => ClientContext -> m Address Source

Deprecated: Use soup_client_context_get_remote_address(), which returnsa #GSocketAddress.

clientContextGetAuthDomain

clientContextGetAuthUser

clientContextGetGsocket

clientContextGetHost

clientContextGetLocalAddress

clientContextGetRemoteAddress

clientContextGetSocket

clientContextGetSocket :: MonadIO m => ClientContext -> m Socket Source

Deprecated: use soup_client_context_get_gsocket(), which returnsa #GSocket.

clientContextStealConnection