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 |
GI.Soup.Structs.Cookie
Contents
- Exported types
- Methods
- cookieAppliesToUri
- cookieCopy
- cookieDomainMatches
- cookieEqual
- cookieFree
- cookieGetDomain
- cookieGetExpires
- cookieGetHttpOnly
- cookieGetName
- cookieGetPath
- cookieGetSecure
- cookieGetValue
- cookieNew
- cookieSetDomain
- cookieSetExpires
- cookieSetHttpOnly
- cookieSetMaxAge
- cookieSetName
- cookieSetPath
- cookieSetSecure
- cookieSetValue
- cookieToCookieHeader
- cookieToSetCookieHeader
- Properties
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.
- newtype Cookie = Cookie (ForeignPtr Cookie)
- noCookie :: Maybe Cookie
- cookieAppliesToUri :: MonadIO m => Cookie -> URI -> m Bool
- cookieCopy :: MonadIO m => Cookie -> m Cookie
- cookieDomainMatches :: MonadIO m => Cookie -> Text -> m Bool
- cookieEqual :: MonadIO m => Cookie -> Cookie -> m Bool
- cookieFree :: MonadIO m => Cookie -> m ()
- cookieGetDomain :: MonadIO m => Cookie -> m Text
- cookieGetExpires :: MonadIO m => Cookie -> m Date
- cookieGetHttpOnly :: MonadIO m => Cookie -> m Bool
- cookieGetName :: MonadIO m => Cookie -> m Text
- cookieGetPath :: MonadIO m => Cookie -> m Text
- cookieGetSecure :: MonadIO m => Cookie -> m Bool
- cookieGetValue :: MonadIO m => Cookie -> m Text
- cookieNew :: MonadIO m => Text -> Text -> Text -> Text -> Int32 -> m Cookie
- cookieSetDomain :: MonadIO m => Cookie -> Text -> m ()
- cookieSetExpires :: MonadIO m => Cookie -> Date -> m ()
- cookieSetHttpOnly :: MonadIO m => Cookie -> Bool -> m ()
- cookieSetMaxAge :: MonadIO m => Cookie -> Int32 -> m ()
- cookieSetName :: MonadIO m => Cookie -> Text -> m ()
- cookieSetPath :: MonadIO m => Cookie -> Text -> m ()
- cookieSetSecure :: MonadIO m => Cookie -> Bool -> m ()
- cookieSetValue :: MonadIO m => Cookie -> Text -> m ()
- cookieToCookieHeader :: MonadIO m => Cookie -> m Text
- cookieToSetCookieHeader :: MonadIO m => Cookie -> m Text
- cookieReadDomain :: Cookie -> IO Text
- cookieReadExpires :: Cookie -> IO Date
- cookieReadHttpOnly :: Cookie -> IO Bool
- cookieReadName :: Cookie -> IO Text
- cookieReadPath :: Cookie -> IO Text
- cookieReadSecure :: Cookie -> IO Bool
- cookieReadValue :: Cookie -> IO Text
Exported types
Methods
cookieAppliesToUri
cookieCopy
cookieCopy :: MonadIO m => Cookie -> m Cookie Source
cookieDomainMatches
cookieEqual
cookieFree
cookieFree :: MonadIO m => Cookie -> m () Source
cookieGetDomain
cookieGetDomain :: MonadIO m => Cookie -> m Text Source
cookieGetExpires
cookieGetExpires :: MonadIO m => Cookie -> m Date Source
cookieGetHttpOnly
cookieGetHttpOnly :: MonadIO m => Cookie -> m Bool Source
cookieGetName
cookieGetName :: MonadIO m => Cookie -> m Text Source
cookieGetPath
cookieGetPath :: MonadIO m => Cookie -> m Text Source
cookieGetSecure
cookieGetSecure :: MonadIO m => Cookie -> m Bool Source
cookieGetValue
cookieGetValue :: MonadIO m => Cookie -> m Text Source
cookieNew
cookieSetDomain
cookieSetDomain :: MonadIO m => Cookie -> Text -> m () Source
cookieSetExpires
cookieSetExpires :: MonadIO m => Cookie -> Date -> m () Source
cookieSetHttpOnly
cookieSetHttpOnly :: MonadIO m => Cookie -> Bool -> m () Source
cookieSetMaxAge
cookieSetMaxAge :: MonadIO m => Cookie -> Int32 -> m () Source
cookieSetName
cookieSetName :: MonadIO m => Cookie -> Text -> m () Source
cookieSetPath
cookieSetPath :: MonadIO m => Cookie -> Text -> m () Source
cookieSetSecure
cookieSetSecure :: MonadIO m => Cookie -> Bool -> m () Source
cookieSetValue
cookieSetValue :: MonadIO m => Cookie -> Text -> m () Source
cookieToCookieHeader
cookieToCookieHeader :: MonadIO m => Cookie -> m Text Source
cookieToSetCookieHeader
cookieToSetCookieHeader :: MonadIO m => Cookie -> m Text Source
Properties
Domain
cookieReadDomain :: Cookie -> IO Text Source
Expires
cookieReadExpires :: Cookie -> IO Date Source
HttpOnly
cookieReadHttpOnly :: Cookie -> IO Bool Source
Name
cookieReadName :: Cookie -> IO Text Source
Path
cookieReadPath :: Cookie -> IO Text Source
Secure
cookieReadSecure :: Cookie -> IO Bool Source
Value
cookieReadValue :: Cookie -> IO Text Source