Safe Haskell | Safe-Infered |
---|
- type Method = ByteString
- methodGet, methodOptions, methodConnect, methodTrace, methodDelete, methodPut, methodHead, methodPost :: Method
- data StdMethod
- parseMethod :: Method -> Either ByteString StdMethod
- renderMethod :: Either ByteString StdMethod -> Method
- renderStdMethod :: StdMethod -> Method
Documentation
type Method = ByteStringSource
HTTP method (flat string type).
methodGet, methodOptions, methodConnect, methodTrace, methodDelete, methodPut, methodHead, methodPost :: MethodSource
HTTP Method constants.
HTTP standard method (as defined by RFC 2616).
parseMethod :: Method -> Either ByteString StdMethodSource
Convert a method ByteString
to a StdMethod
if possible.
renderMethod :: Either ByteString StdMethod -> MethodSource
Convert an algebraic method to a ByteString
.
renderStdMethod :: StdMethod -> MethodSource
Convert a StdMethod
to a ByteString
.