Copyright | (c) Hardy Jones 2017 |
---|---|
License | BSD3 |
Maintainer | jones3.hardy@gmail.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- 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
Request | |
|
Instances
The query string parameters as a more useful data structure.
The IP address of the client.
The HTTP Verb
Instances
Eq Method Source # | |
Show Method Source # | |
Generic Method Source # | |
ToJSON Method Source # | |
Defined in Rollbar.Item.Request | |
FromJSON Method Source # | |
type Rep Method Source # | |
Defined in Rollbar.Item.Request type Rep Method = D1 (MetaData "Method" "Rollbar.Item.Request" "rollbar-hs-0.3.1.0-AHXin9WUqD3IOtR3mTqHpy" True) (C1 (MetaCons "Method" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ByteString))) |
newtype MissingHeaders (headers :: [Symbol]) Source #
The request headers with some missing
This is useful for removing sensitive information
like the Authorization
header.
Instances
Eq (MissingHeaders headers) Source # | |
Defined in Rollbar.Item.MissingHeaders (==) :: MissingHeaders headers -> MissingHeaders headers -> Bool # (/=) :: MissingHeaders headers -> MissingHeaders headers -> Bool # | |
Show (MissingHeaders headers) Source # | |
Defined in Rollbar.Item.MissingHeaders showsPrec :: Int -> MissingHeaders headers -> ShowS # show :: MissingHeaders headers -> String # showList :: [MissingHeaders headers] -> ShowS # | |
RemoveHeaders headers => ToJSON (MissingHeaders headers) Source # | |
Defined in Rollbar.Item.MissingHeaders toJSON :: MissingHeaders headers -> Value # toEncoding :: MissingHeaders headers -> Encoding # toJSONList :: [MissingHeaders headers] -> Value # toEncodingList :: [MissingHeaders headers] -> Encoding # | |
FromJSON (MissingHeaders headers) Source # | |
Defined in Rollbar.Item.MissingHeaders parseJSON :: Value -> Parser (MissingHeaders headers) # parseJSONList :: Value -> Parser [MissingHeaders headers] # |
newtype QueryString Source #
The raw querystring.
Instances
The raw request body as a ByteString
.
Instances
Eq RawBody Source # | |
Show RawBody Source # | |
IsString RawBody Source # | |
Defined in Rollbar.Item.Request fromString :: String -> RawBody # | |
Generic RawBody Source # | |
ToJSON RawBody Source # | |
Defined in Rollbar.Item.Request | |
FromJSON RawBody Source # | |
type Rep RawBody Source # | |
Defined in Rollbar.Item.Request type Rep RawBody = D1 (MetaData "RawBody" "Rollbar.Item.Request" "rollbar-hs-0.3.1.0-AHXin9WUqD3IOtR3mTqHpy" True) (C1 (MetaCons "RawBody" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ByteString))) |
The URL as a slightly more useful structure.
URL (Maybe ByteString, [Text]) |
class RemoveHeaders (headers :: [Symbol]) Source #
Remove the headers given from the underlying request headers.
removeHeaders
Instances
RemoveHeaders ([] :: [Symbol]) Source # | |
Defined in Rollbar.Item.MissingHeaders removeHeaders :: MissingHeaders [] -> RequestHeaders | |
(KnownSymbol header, RemoveHeaders headers) => RemoveHeaders (header ': headers) Source # | |
Defined in Rollbar.Item.MissingHeaders removeHeaders :: MissingHeaders (header ': headers) -> RequestHeaders |