HTTP method (flat ByteString type).
Modulehttp-types-0.12.4Haskell2010
Network.HTTP.Types.Method
Types and constants for HTTP methods.
The HTTP standard defines a set of standard methods, when to use them,
and how to handle them. The standard set has been provided as a separate
data type StdMethod, but since you can also use custom methods, the
basic type Method is just a synonym for ByteString.
- 2 types
- 12 values
- Packagehttp-types-0.12.4
- Exports14
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceMethod.hs
HTTP methods
1 declarationConstants
HTTP GET Method
HTTP POST Method
HTTP HEAD Method
HTTP PUT Method
HTTP DELETE Method
HTTP TRACE Method
HTTP CONNECT Method
HTTP OPTIONS Method
HTTP PATCH Method
Standard Methods
One data type that holds all standard HTTP methods.
HTTP standard method (as defined by RFC 2616, and PATCH which is defined by RFC 5789).
Instances10Bounded, Enum, Eq, Data, Ord, Read, …
Bounded StdMethodDefined in http-types-0.12.4 · Network.HTTP.Types.MethodEnum StdMethodDefined in http-types-0.12.4 · Network.HTTP.Types.MethodEq StdMethodDefined in http-types-0.12.4 · Network.HTTP.Types.MethodData StdMethodDefined in http-types-0.12.4 · Network.HTTP.Types.MethodOrd StdMethodDefined in http-types-0.12.4 · Network.HTTP.Types.MethodRead StdMethodDefined in http-types-0.12.4 · Network.HTTP.Types.MethodShow StdMethodDefined in http-types-0.12.4 · Network.HTTP.Types.MethodIx StdMethodDefined in http-types-0.12.4 · Network.HTTP.Types.MethodGeneric StdMethodDefined in http-types-0.12.4 · Network.HTTP.Types.Methodtype Rep StdMethod = D1 ('MetaDataDefined in http-types-0.12.4 · Network.HTTP.Types.Method"StdMethod"
"Network.HTTP.Types.Method"
"http-types-0.12.4-KkMxTblWZY5WJ4M2x8W7s"
'False) (((C1 ('MetaCons"GET"
'PrefixI 'False) U1 :+: C1 ('MetaCons"POST"
'PrefixI 'False) U1) :+: (C1 ('MetaCons"HEAD"
'PrefixI 'False) U1 :+: C1 ('MetaCons"PUT"
'PrefixI 'False) U1)) :+: ((C1 ('MetaCons"DELETE"
'PrefixI 'False) U1 :+: C1 ('MetaCons"TRACE"
'PrefixI 'False) U1) :+: (C1 ('MetaCons"CONNECT"
'PrefixI 'False) U1 :+: (C1 ('MetaCons"OPTIONS"
'PrefixI 'False) U1 :+: C1 ('MetaCons"PATCH"
'PrefixI 'False) U1))))
Convert a method ByteString to a StdMethod if possible.
Convert an algebraic method to a ByteString.
renderMethod (parseMethod bs) == bsConvert a StdMethod to a ByteString.