| Copyright | (c) Hardy Jones 2017 |
|---|---|
| License | BSD3 |
| Maintainer | jones3.hardy@gmail.com |
| Stability | experimental |
| Safe Haskell | None |
| Language | Haskell2010 |
Rollbar.Item.Request
Description
- 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 :: [Symbol]) = MissingHeaders RequestHeaders
- newtype QueryString = QueryString ByteString
- newtype RawBody = RawBody ByteString
- newtype URL = URL (Maybe ByteString, [Text])
- class RemoveHeaders (headers :: [Symbol])
Documentation
Data sent to the server
Constructors
| Request | |
Fields
| |
The query string parameters as a more useful data structure.
The IP address of the client.
The HTTP Verb
Constructors
| Method ByteString |
newtype MissingHeaders (headers :: [Symbol]) Source #
The request headers with some missing
This is useful for removing sensitive information
like the Authorization header.
Constructors
| MissingHeaders RequestHeaders |
Instances
| Eq (MissingHeaders headers) Source # | |
| Show (MissingHeaders headers) Source # | |
| RemoveHeaders headers => ToJSON (MissingHeaders headers) Source # | |
| FromJSON (MissingHeaders headers) Source # | |
The raw request body as a ByteString.
Constructors
| RawBody ByteString |
The URL as a slightly more useful structure.
Constructors
| URL (Maybe ByteString, [Text]) |
class RemoveHeaders (headers :: [Symbol]) Source #
Remove the headers given from the underlying request headers.
Minimal complete definition
removeHeaders
Instances
| RemoveHeaders ([] Symbol) Source # | |
| (KnownSymbol header, RemoveHeaders headers) => RemoveHeaders ((:) Symbol header headers) Source # | |