Module
Node.Express.Types
- Package
- purescript-express
- Repository
- purescript-express/purescript-express
#Application Source
data Application
#decodeMethod Source
decodeMethod :: String -> Method
#RoutePattern Source
class RoutePattern :: forall a. a -> Constraint
class RoutePattern a
Instances
#RequestParam Source
class RequestParam :: forall a. a -> Constraint
class RequestParam a
Instances
#SameSite Source
data SameSite
Cookie options
- maxAge -- time in msecs
- signed -- use secret to sign if true
- path -- cookie path
- sameSite -- "same site" cookie; can be "none", "lax", "strict"
- secure -- whether the cookie is only to be sent over HTTPS
- httpOnly -- whether the cookie is and not made available to JavaScript
- overwrite -- whether to overwrite previously set cookies of the same name
Constructors
#CookieOptions Source
newtype CookieOptions
Constructors
CookieOptions { httpOnly :: Boolean, maxAge :: Int, overwrite :: Boolean, path :: String, sameSite :: SameSite, secure :: Boolean, signed :: Boolean }