data Application :: Type
data Event :: Type
data Response :: Type
data Request :: Type
data Protocol
= Http
| Https
Show Protocol
decodeProtocol :: String -> Maybe Protocol
data Method
= ALL
| GET
| POST
| PUT
| DELETE
| OPTIONS
| HEAD
| TRACE
| CustomMethod String
Show Method
decodeMethod :: String -> Method
type Host = String
type Port = Int
type Pipe = String
type Path = String
class RoutePattern a
RoutePattern String
RoutePattern Regex
class RequestParam a
RequestParam String
RequestParam Number
newtype CookieOptions
= CookieOptions { maxAge :: Int, signed :: Boolean, path :: String }
Cookie options
- maxAge -- time in msecs
- signed -- use secret to sign if true
- path -- cookie path
Default CookieOptions