Safe Haskell | None |
---|---|
Language | Haskell98 |
Synopsis
- data T body = Cons Command URI T Group body
- command :: T body -> Command
- uri :: T body -> URI
- httpVersion :: T body -> T
- headers :: T body -> Group
- body :: T body -> body
- toHTTPbis :: T body -> Request body
- fromHTTPbis :: Request body -> T body
- type Command = RequestMethod
- data RequestMethod
- data Connection
- data Expect = ExpectContinue
- pHeaders :: Monoid body => Parser (T body)
- getHost :: HasHeaders a => a -> Maybe (HostName, Maybe Int)
- getConnection :: HasHeaders a => a -> [Connection]
Documentation
httpVersion :: T body -> T Source #
fromHTTPbis :: Request body -> T body Source #
type Command = RequestMethod Source #
data RequestMethod #
The HTTP request method, to be used in the Request
object.
We are missing a few of the stranger methods, but these are
not really necessary until we add full TLS.
Instances
Eq RequestMethod | |
Defined in Network.HTTP.Base (==) :: RequestMethod -> RequestMethod -> Bool # (/=) :: RequestMethod -> RequestMethod -> Bool # | |
Show RequestMethod | |
Defined in Network.HTTP.Base showsPrec :: Int -> RequestMethod -> ShowS # show :: RequestMethod -> String # showList :: [RequestMethod] -> ShowS # |
data Connection Source #
Instances
Eq Connection Source # | |
Defined in Network.MoHWS.HTTP.Request (==) :: Connection -> Connection -> Bool # (/=) :: Connection -> Connection -> Bool # | |
Show Connection Source # | |
Defined in Network.MoHWS.HTTP.Request showsPrec :: Int -> Connection -> ShowS # show :: Connection -> String # showList :: [Connection] -> ShowS # |
getConnection :: HasHeaders a => a -> [Connection] Source #