http-types-0.7.3: Generic HTTP types for Haskell (for both client and server code).

Safe HaskellSafe-Infered

Network.HTTP.Types.Method

Synopsis

Documentation

type Method = ByteStringSource

HTTP method (flat string type).

data StdMethod Source

HTTP standard method (as defined by RFC 2616).

Constructors

GET 
POST 
HEAD 
PUT 
DELETE 
TRACE 
CONNECT 
OPTIONS 

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.