Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Synopsis
- 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).
methodPost :: Method Source #
HTTP Method constants.
methodHead :: Method Source #
HTTP Method constants.
methodDelete :: Method Source #
HTTP Method constants.
methodTrace :: Method Source #
HTTP Method constants.
methodConnect :: Method Source #
HTTP Method constants.
methodOptions :: Method Source #
HTTP Method constants.
methodPatch :: Method Source #
HTTP Method constants.
HTTP standard method (as defined by RFC 2616, and PATCH which is defined by RFC 5789).
Instances
Bounded StdMethod Source # | |
Enum StdMethod Source # | |
Defined in Network.HTTP.Types.Method succ :: StdMethod -> StdMethod # pred :: StdMethod -> StdMethod # fromEnum :: StdMethod -> Int # enumFrom :: StdMethod -> [StdMethod] # enumFromThen :: StdMethod -> StdMethod -> [StdMethod] # enumFromTo :: StdMethod -> StdMethod -> [StdMethod] # enumFromThenTo :: StdMethod -> StdMethod -> StdMethod -> [StdMethod] # | |
Eq StdMethod Source # | |
Ord StdMethod Source # | |
Defined in Network.HTTP.Types.Method | |
Read StdMethod Source # | |
Show StdMethod Source # | |
Ix StdMethod Source # | |
Defined in Network.HTTP.Types.Method range :: (StdMethod, StdMethod) -> [StdMethod] # index :: (StdMethod, StdMethod) -> StdMethod -> Int # unsafeIndex :: (StdMethod, StdMethod) -> StdMethod -> Int # inRange :: (StdMethod, StdMethod) -> StdMethod -> Bool # rangeSize :: (StdMethod, StdMethod) -> Int # unsafeRangeSize :: (StdMethod, StdMethod) -> Int # |
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
.