Copyright | (c) Hardy Jones 2017 |
---|---|
License | BSD3 |
Maintainer | jones3.hardy@gmail.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
- data Request headers = Request {
- rawBody :: RawBody
- get :: Get
- headers :: MissingHeaders headers
- method :: Method
- queryString :: QueryString
- url :: URL
- userIP :: IP
- newtype Get = Get Query
- newtype IP = IP SockAddr
- newtype Method = Method ByteString
- newtype MissingHeaders headers = MissingHeaders RequestHeaders
- newtype QueryString = QueryString ByteString
- newtype RawBody = RawBody ByteString
- newtype URL = URL (Maybe ByteString, [Text])
- class RemoveHeaders headers
Documentation
Data sent to the server
Request | |
|
The query string parameters as a more useful data structure.
The IP address of the client.
The HTTP Verb
newtype MissingHeaders headers Source #
The request headers with some missing
This is useful for removing sensitive information
like the Authorization
header.
Eq (MissingHeaders headers) Source # | |
Show (MissingHeaders headers) Source # | |
FromJSON (MissingHeaders headers) Source # | |
RemoveHeaders headers => ToJSON (MissingHeaders headers) Source # | |
newtype QueryString Source #
The raw querystring.
The raw request body as a ByteString
.
The URL as a slightly more useful structure.
URL (Maybe ByteString, [Text]) |
class RemoveHeaders headers Source #
Remove the headers given from the underlying request headers.
removeHeaders
RemoveHeaders ([] Symbol) Source # | |
(KnownSymbol header, RemoveHeaders headers) => RemoveHeaders ((:) Symbol header headers) Source # | |