Module

Network.HTTP.Types.Cookie

Package
purescript-http-types
Repository
chrisdotcode/purescript-http-types

#Cookie Source

newtype Cookie

An type that represents an HTTP Cookie.

Constructors

Instances

#setDomain Source

#parse Source

parse :: String -> Cookie

Converts a Set-Cookie header value string into a 'Cookie'.

#stringify Source

stringify :: Cookie -> String

Converts a 'Cookie' into a Cookie header value string.

#stringify' Source

stringify' :: List Cookie -> String

Converts a 'List' of 'Cookie's into a Cookie header value.

N.B.: Please use this function instead of just calling map stringify myCookieList as special processing is needed to convert a 'List' of 'Cookie's into a RFC-compliant Cookie header value string.