Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
- type Method = ByteString
- methodGet :: Method
- methodPost :: Method
- methodHead :: Method
- methodPut :: Method
- methodDelete :: Method
- methodTrace :: Method
- methodConnect :: Method
- methodOptions :: Method
- methodPatch :: Method
- data StdMethod
- parseMethod :: Method -> Either ByteString StdMethod
- renderMethod :: Either ByteString StdMethod -> Method
- renderStdMethod :: StdMethod -> Method
Documentation
type Method = ByteString Source
HTTP method (flat string type).
HTTP Method constants.
HTTP Method constants.
HTTP Method constants.
HTTP Method constants.
methodConnect :: Method Source
HTTP Method constants.
methodOptions :: Method Source
HTTP Method constants.
HTTP Method constants.
HTTP standard method (as defined by RFC 2616, and PATCH which is defined by RFC 5789).
parseMethod :: Method -> Either ByteString StdMethod Source
Convert a method ByteString
to a StdMethod
if possible.
renderMethod :: Either ByteString StdMethod -> Method Source
Convert an algebraic method to a ByteString
.
renderStdMethod :: StdMethod -> Method Source
Convert a StdMethod
to a ByteString
.