gi-soup-0.2.52.15: 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.Cookie

Contents

Description

An HTTP cookie.

name and value will be set for all cookies. If the cookie is generated from a string that appears to have no name, then @name will be the empty string.

domain and path give the host or domain, and path within that host/domain, to restrict this cookie to. If domain starts with ".", that indicates a domain (which matches the string after the ".", or any hostname that has domain as a suffix). Otherwise, it is a hostname and must match exactly.

expires will be non-%NULL if the cookie uses either the original "expires" attribute, or the newer "max-age" attribute. If expires is %NULL, it indicates that neither "expires" nor "max-age" was specified, and the cookie expires at the end of the session.

If @http_only is set, the cookie should not be exposed to untrusted code (eg, javascript), so as to minimize the danger posed by cross-site scripting attacks.

Synopsis

Exported types

newtype Cookie Source

Constructors

Cookie (ForeignPtr Cookie) 

Instances

BoxedObject Cookie 
(~) AttrOpTag tag AttrSet => Constructible Cookie tag 
((~) * signature (m Text), MonadIO m) => MethodInfo * CookieToSetCookieHeaderMethodInfo Cookie signature 
((~) * signature (m Text), MonadIO m) => MethodInfo * CookieToCookieHeaderMethodInfo Cookie signature 
((~) * signature (Text -> m ()), MonadIO m) => MethodInfo * CookieSetValueMethodInfo Cookie signature 
((~) * signature (Bool -> m ()), MonadIO m) => MethodInfo * CookieSetSecureMethodInfo Cookie signature 
((~) * signature (Text -> m ()), MonadIO m) => MethodInfo * CookieSetPathMethodInfo Cookie signature 
((~) * signature (Text -> m ()), MonadIO m) => MethodInfo * CookieSetNameMethodInfo Cookie signature 
((~) * signature (Int32 -> m ()), MonadIO m) => MethodInfo * CookieSetMaxAgeMethodInfo Cookie signature 
((~) * signature (Bool -> m ()), MonadIO m) => MethodInfo * CookieSetHttpOnlyMethodInfo Cookie signature 
((~) * signature (Date -> m ()), MonadIO m) => MethodInfo * CookieSetExpiresMethodInfo Cookie signature 
((~) * signature (Text -> m ()), MonadIO m) => MethodInfo * CookieSetDomainMethodInfo Cookie signature 
((~) * signature (m Text), MonadIO m) => MethodInfo * CookieGetValueMethodInfo Cookie signature 
((~) * signature (m Bool), MonadIO m) => MethodInfo * CookieGetSecureMethodInfo Cookie signature 
((~) * signature (m Text), MonadIO m) => MethodInfo * CookieGetPathMethodInfo Cookie signature 
((~) * signature (m Text), MonadIO m) => MethodInfo * CookieGetNameMethodInfo Cookie signature 
((~) * signature (m Bool), MonadIO m) => MethodInfo * CookieGetHttpOnlyMethodInfo Cookie signature 
((~) * signature (m Date), MonadIO m) => MethodInfo * CookieGetExpiresMethodInfo Cookie signature 
((~) * signature (m Text), MonadIO m) => MethodInfo * CookieGetDomainMethodInfo Cookie signature 
((~) * signature (m ()), MonadIO m) => MethodInfo * CookieFreeMethodInfo Cookie signature 
((~) * signature (Cookie -> m Bool), MonadIO m) => MethodInfo * CookieEqualMethodInfo Cookie signature 
((~) * signature (Text -> m Bool), MonadIO m) => MethodInfo * CookieDomainMatchesMethodInfo Cookie signature 
((~) * signature (m Cookie), MonadIO m) => MethodInfo * CookieCopyMethodInfo Cookie signature 
((~) * signature (URI -> m Bool), MonadIO m) => MethodInfo * CookieAppliesToUriMethodInfo Cookie signature 
((~) * info (ResolveCookieMethod t Cookie), MethodInfo * info Cookie p) => IsLabelProxy t (Cookie -> p) 
type AttributeList Cookie 

newZeroCookie :: MonadIO m => m Cookie Source

Construct a Cookie struct initialized to zero.

Methods

cookieAppliesToUri

data CookieAppliesToUriMethodInfo Source

Instances

((~) * signature (URI -> m Bool), MonadIO m) => MethodInfo * CookieAppliesToUriMethodInfo Cookie signature 

cookieCopy

data CookieCopyMethodInfo Source

Instances

((~) * signature (m Cookie), MonadIO m) => MethodInfo * CookieCopyMethodInfo Cookie signature 

cookieDomainMatches

data CookieDomainMatchesMethodInfo Source

Instances

((~) * signature (Text -> m Bool), MonadIO m) => MethodInfo * CookieDomainMatchesMethodInfo Cookie signature 

cookieEqual

data CookieEqualMethodInfo Source

Instances

((~) * signature (Cookie -> m Bool), MonadIO m) => MethodInfo * CookieEqualMethodInfo Cookie signature 

cookieFree

data CookieFreeMethodInfo Source

Instances

((~) * signature (m ()), MonadIO m) => MethodInfo * CookieFreeMethodInfo Cookie signature 

cookieGetDomain

data CookieGetDomainMethodInfo Source

Instances

((~) * signature (m Text), MonadIO m) => MethodInfo * CookieGetDomainMethodInfo Cookie signature 

cookieGetExpires

data CookieGetExpiresMethodInfo Source

Instances

((~) * signature (m Date), MonadIO m) => MethodInfo * CookieGetExpiresMethodInfo Cookie signature 

cookieGetHttpOnly

data CookieGetHttpOnlyMethodInfo Source

Instances

((~) * signature (m Bool), MonadIO m) => MethodInfo * CookieGetHttpOnlyMethodInfo Cookie signature 

cookieGetName

data CookieGetNameMethodInfo Source

Instances

((~) * signature (m Text), MonadIO m) => MethodInfo * CookieGetNameMethodInfo Cookie signature 

cookieGetPath

data CookieGetPathMethodInfo Source

Instances

((~) * signature (m Text), MonadIO m) => MethodInfo * CookieGetPathMethodInfo Cookie signature 

cookieGetSecure

data CookieGetSecureMethodInfo Source

Instances

((~) * signature (m Bool), MonadIO m) => MethodInfo * CookieGetSecureMethodInfo Cookie signature 

cookieGetValue

data CookieGetValueMethodInfo Source

Instances

((~) * signature (m Text), MonadIO m) => MethodInfo * CookieGetValueMethodInfo Cookie signature 

cookieNew

cookieNew :: MonadIO m => Text -> Text -> Text -> Text -> Int32 -> m Cookie Source

cookieParse

cookieSetDomain

data CookieSetDomainMethodInfo Source

Instances

((~) * signature (Text -> m ()), MonadIO m) => MethodInfo * CookieSetDomainMethodInfo Cookie signature 

cookieSetExpires

data CookieSetExpiresMethodInfo Source

Instances

((~) * signature (Date -> m ()), MonadIO m) => MethodInfo * CookieSetExpiresMethodInfo Cookie signature 

cookieSetHttpOnly

data CookieSetHttpOnlyMethodInfo Source

Instances

((~) * signature (Bool -> m ()), MonadIO m) => MethodInfo * CookieSetHttpOnlyMethodInfo Cookie signature 

cookieSetMaxAge

data CookieSetMaxAgeMethodInfo Source

Instances

((~) * signature (Int32 -> m ()), MonadIO m) => MethodInfo * CookieSetMaxAgeMethodInfo Cookie signature 

cookieSetName

data CookieSetNameMethodInfo Source

Instances

((~) * signature (Text -> m ()), MonadIO m) => MethodInfo * CookieSetNameMethodInfo Cookie signature 

cookieSetPath

data CookieSetPathMethodInfo Source

Instances

((~) * signature (Text -> m ()), MonadIO m) => MethodInfo * CookieSetPathMethodInfo Cookie signature 

cookieSetSecure

data CookieSetSecureMethodInfo Source

Instances

((~) * signature (Bool -> m ()), MonadIO m) => MethodInfo * CookieSetSecureMethodInfo Cookie signature 

cookieSetValue

data CookieSetValueMethodInfo Source

Instances

((~) * signature (Text -> m ()), MonadIO m) => MethodInfo * CookieSetValueMethodInfo Cookie signature 

cookieToCookieHeader

cookieToSetCookieHeader

Properties

Domain

Expires

HttpOnly

Name

Path

Secure

Value