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.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

Methods

cookieAppliesToUri

cookieCopy

cookieDomainMatches

cookieEqual

cookieFree

cookieGetDomain

cookieGetExpires

cookieGetHttpOnly

cookieGetName

cookieGetPath

cookieGetSecure

cookieGetValue

cookieNew

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

cookieSetDomain

cookieSetExpires

cookieSetHttpOnly

cookieSetMaxAge

cookieSetName

cookieSetPath

cookieSetSecure

cookieSetValue

cookieToCookieHeader

cookieToSetCookieHeader

Properties

Domain

Expires

HttpOnly

Name

Path

Secure

Value