Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- render :: ToCommandList a => a -> [BinaryCommand]
- renderLBS :: ToCommandList a => a -> [ByteString]
- class ToCommandList a where
- toCommandList :: a -> [Command]
- data Command
- data Action a
- renderCommand :: Command -> BinaryCommand
- data BinaryCommand
- binaryCommandByteStringLazy :: BinaryCommand -> ByteString
- newtype Tray a = Tray (Map Name a)
- parse :: ByteString -> Tray Value
- lookup :: Name -> Tray a -> Maybe a
- fromList :: [Named a] -> Tray a
- toList :: Tray a -> [Named a]
- newtype Name = Name {}
- data Named a = Named {}
- newtype Value = Value {}
- data Expiry
- data Expiring a = Expiring {}
- data Security = Security {}
- data Secured a = Secured {}
- data Origin
- data TransportEncryption
- data SameSiteOptions = SameSiteOptions {}
- data SameSiteStrictness
- data JavascriptAccess
- data Scope = Scope {}
- data Domain
- data Path
- data Meta = Meta {}
Command
render :: ToCommandList a => a -> [BinaryCommand] Source #
renderLBS :: ToCommandList a => a -> [ByteString] Source #
class ToCommandList a where Source #
toCommandList :: a -> [Command] Source #
Instances
ToCommandList Command Source # | |
Defined in CookieTray.Command toCommandList :: Command -> [Command] Source # | |
ToCommandList Many Source # | |
Defined in CookieTray.Command.Many toCommandList :: Many -> [Command] Source # | |
ToCommandList PutMany Source # | |
Defined in CookieTray.Command.PutMany toCommandList :: PutMany -> [Command] Source # | |
ToCommandList PutOne Source # | |
Defined in CookieTray.Command.PutOne toCommandList :: PutOne -> [Command] Source # |
renderCommand :: Command -> BinaryCommand Source #
data BinaryCommand Source #
The raw content of a set-cookie header
Instances
IsString BinaryCommand Source # | |
Defined in CookieTray.Types fromString :: String -> BinaryCommand # | |
Show BinaryCommand Source # | |
Defined in CookieTray.Types showsPrec :: Int -> BinaryCommand -> ShowS # show :: BinaryCommand -> String # showList :: [BinaryCommand] -> ShowS # | |
Eq BinaryCommand Source # | |
Defined in CookieTray.Types (==) :: BinaryCommand -> BinaryCommand -> Bool # (/=) :: BinaryCommand -> BinaryCommand -> Bool # | |
Ord BinaryCommand Source # | |
Defined in CookieTray.Types compare :: BinaryCommand -> BinaryCommand -> Ordering # (<) :: BinaryCommand -> BinaryCommand -> Bool # (<=) :: BinaryCommand -> BinaryCommand -> Bool # (>) :: BinaryCommand -> BinaryCommand -> Bool # (>=) :: BinaryCommand -> BinaryCommand -> Bool # max :: BinaryCommand -> BinaryCommand -> BinaryCommand # min :: BinaryCommand -> BinaryCommand -> BinaryCommand # |
Tray
Name
Value
Expiry
Instances
Functor Expiring Source # | |
Show a => Show (Expiring a) Source # | |
Eq a => Eq (Expiring a) Source # | |
Ord a => Ord (Expiring a) Source # | |
Meta
Security
SameSite SameSiteOptions | |
CrossSite | Instruct the client to send the cookie for all requests,
even those originating from a third party.
This option implies |
data TransportEncryption Source #
RequireEncryptedTransport | The browser only sends cookies over HTTP, not HTTP |
AllowUnencryptedTransport | The browser sends cookies regardless of transport encryption |
Instances
Show TransportEncryption Source # | |
Defined in CookieTray.Types showsPrec :: Int -> TransportEncryption -> ShowS # show :: TransportEncryption -> String # showList :: [TransportEncryption] -> ShowS # | |
Eq TransportEncryption Source # | |
Defined in CookieTray.Types (==) :: TransportEncryption -> TransportEncryption -> Bool # (/=) :: TransportEncryption -> TransportEncryption -> Bool # | |
Ord TransportEncryption Source # | |
Defined in CookieTray.Types compare :: TransportEncryption -> TransportEncryption -> Ordering # (<) :: TransportEncryption -> TransportEncryption -> Bool # (<=) :: TransportEncryption -> TransportEncryption -> Bool # (>) :: TransportEncryption -> TransportEncryption -> Bool # (>=) :: TransportEncryption -> TransportEncryption -> Bool # max :: TransportEncryption -> TransportEncryption -> TransportEncryption # min :: TransportEncryption -> TransportEncryption -> TransportEncryption # |
data SameSiteOptions Source #
Instances
Show SameSiteOptions Source # | |
Defined in CookieTray.Types showsPrec :: Int -> SameSiteOptions -> ShowS # show :: SameSiteOptions -> String # showList :: [SameSiteOptions] -> ShowS # | |
Eq SameSiteOptions Source # | |
Defined in CookieTray.Types (==) :: SameSiteOptions -> SameSiteOptions -> Bool # (/=) :: SameSiteOptions -> SameSiteOptions -> Bool # | |
Ord SameSiteOptions Source # | |
Defined in CookieTray.Types compare :: SameSiteOptions -> SameSiteOptions -> Ordering # (<) :: SameSiteOptions -> SameSiteOptions -> Bool # (<=) :: SameSiteOptions -> SameSiteOptions -> Bool # (>) :: SameSiteOptions -> SameSiteOptions -> Bool # (>=) :: SameSiteOptions -> SameSiteOptions -> Bool # max :: SameSiteOptions -> SameSiteOptions -> SameSiteOptions # min :: SameSiteOptions -> SameSiteOptions -> SameSiteOptions # |
data SameSiteStrictness Source #
SameSiteStrict | Instruct the client not to send the cookie for requests originating from another site, e.g. if a user clicked a link from another site to yours. This setting offers the strongest protection against cross-site request forgery, but does not make sense in a lot of cases. (If somebody follows a link to your site, should they appear to be logged out?) |
SameSiteLax | The client will send the cookie whenever your domain is what appears in the navigation bar |
Instances
Show SameSiteStrictness Source # | |
Defined in CookieTray.Types showsPrec :: Int -> SameSiteStrictness -> ShowS # show :: SameSiteStrictness -> String # showList :: [SameSiteStrictness] -> ShowS # | |
Eq SameSiteStrictness Source # | |
Defined in CookieTray.Types (==) :: SameSiteStrictness -> SameSiteStrictness -> Bool # (/=) :: SameSiteStrictness -> SameSiteStrictness -> Bool # | |
Ord SameSiteStrictness Source # | |
Defined in CookieTray.Types compare :: SameSiteStrictness -> SameSiteStrictness -> Ordering # (<) :: SameSiteStrictness -> SameSiteStrictness -> Bool # (<=) :: SameSiteStrictness -> SameSiteStrictness -> Bool # (>) :: SameSiteStrictness -> SameSiteStrictness -> Bool # (>=) :: SameSiteStrictness -> SameSiteStrictness -> Bool # max :: SameSiteStrictness -> SameSiteStrictness -> SameSiteStrictness # min :: SameSiteStrictness -> SameSiteStrictness -> SameSiteStrictness # |
data JavascriptAccess Source #
HiddenFromJavascript | HttpOnly; javascript cannot access the cookie |
AccessibleFromJavascript | Cookie will be accessible from javascript, see https://developer.mozilla.org/en-US/docs/web/api/document/cookie |
Instances
Show JavascriptAccess Source # | |
Defined in CookieTray.Types showsPrec :: Int -> JavascriptAccess -> ShowS # show :: JavascriptAccess -> String # showList :: [JavascriptAccess] -> ShowS # | |
Eq JavascriptAccess Source # | |
Defined in CookieTray.Types (==) :: JavascriptAccess -> JavascriptAccess -> Bool # (/=) :: JavascriptAccess -> JavascriptAccess -> Bool # | |
Ord JavascriptAccess Source # | |
Defined in CookieTray.Types compare :: JavascriptAccess -> JavascriptAccess -> Ordering # (<) :: JavascriptAccess -> JavascriptAccess -> Bool # (<=) :: JavascriptAccess -> JavascriptAccess -> Bool # (>) :: JavascriptAccess -> JavascriptAccess -> Bool # (>=) :: JavascriptAccess -> JavascriptAccess -> Bool # max :: JavascriptAccess -> JavascriptAccess -> JavascriptAccess # min :: JavascriptAccess -> JavascriptAccess -> JavascriptAccess # |
Scope
The host to which the cookie will be sent