rollbar-hs-0.3.1.0: Core Rollbar data types and APIs.

Copyright(c) Hardy Jones 2017
LicenseBSD3
Maintainerjones3.hardy@gmail.com
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Rollbar.Item.Request

Description

 
Synopsis

Documentation

data Request headers Source #

Data sent to the server

Constructors

Request 

Fields

Instances
Eq (Request headers) Source # 
Instance details

Defined in Rollbar.Item.Request

Methods

(==) :: Request headers -> Request headers -> Bool #

(/=) :: Request headers -> Request headers -> Bool #

Show (Request headers) Source # 
Instance details

Defined in Rollbar.Item.Request

Methods

showsPrec :: Int -> Request headers -> ShowS #

show :: Request headers -> String #

showList :: [Request headers] -> ShowS #

Generic (Request headers) Source # 
Instance details

Defined in Rollbar.Item.Request

Associated Types

type Rep (Request headers) :: * -> * #

Methods

from :: Request headers -> Rep (Request headers) x #

to :: Rep (Request headers) x -> Request headers #

RemoveHeaders headers => ToJSON (Request headers) Source # 
Instance details

Defined in Rollbar.Item.Request

Methods

toJSON :: Request headers -> Value #

toEncoding :: Request headers -> Encoding #

toJSONList :: [Request headers] -> Value #

toEncodingList :: [Request headers] -> Encoding #

FromJSON (Request headers) Source # 
Instance details

Defined in Rollbar.Item.Request

Methods

parseJSON :: Value -> Parser (Request headers) #

parseJSONList :: Value -> Parser [Request headers] #

type Rep (Request headers) Source # 
Instance details

Defined in Rollbar.Item.Request

newtype Get Source #

The query string parameters as a more useful data structure.

Constructors

Get Query 
Instances
Eq Get Source # 
Instance details

Defined in Rollbar.Item.Request

Methods

(==) :: Get -> Get -> Bool #

(/=) :: Get -> Get -> Bool #

Show Get Source # 
Instance details

Defined in Rollbar.Item.Request

Methods

showsPrec :: Int -> Get -> ShowS #

show :: Get -> String #

showList :: [Get] -> ShowS #

Generic Get Source # 
Instance details

Defined in Rollbar.Item.Request

Associated Types

type Rep Get :: * -> * #

Methods

from :: Get -> Rep Get x #

to :: Rep Get x -> Get #

ToJSON Get Source # 
Instance details

Defined in Rollbar.Item.Request

FromJSON Get Source # 
Instance details

Defined in Rollbar.Item.Request

type Rep Get Source # 
Instance details

Defined in Rollbar.Item.Request

type Rep Get = D1 (MetaData "Get" "Rollbar.Item.Request" "rollbar-hs-0.3.1.0-AHXin9WUqD3IOtR3mTqHpy" True) (C1 (MetaCons "Get" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Query)))

newtype IP Source #

The IP address of the client.

Constructors

IP SockAddr 
Instances
Eq IP Source # 
Instance details

Defined in Rollbar.Item.Request

Methods

(==) :: IP -> IP -> Bool #

(/=) :: IP -> IP -> Bool #

Show IP Source # 
Instance details

Defined in Rollbar.Item.Request

Methods

showsPrec :: Int -> IP -> ShowS #

show :: IP -> String #

showList :: [IP] -> ShowS #

Generic IP Source # 
Instance details

Defined in Rollbar.Item.Request

Associated Types

type Rep IP :: * -> * #

Methods

from :: IP -> Rep IP x #

to :: Rep IP x -> IP #

ToJSON IP Source # 
Instance details

Defined in Rollbar.Item.Request

FromJSON IP Source # 
Instance details

Defined in Rollbar.Item.Request

type Rep IP Source # 
Instance details

Defined in Rollbar.Item.Request

type Rep IP = D1 (MetaData "IP" "Rollbar.Item.Request" "rollbar-hs-0.3.1.0-AHXin9WUqD3IOtR3mTqHpy" True) (C1 (MetaCons "IP" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 SockAddr)))

newtype Method Source #

The HTTP Verb

Constructors

Method ByteString 
Instances
Eq Method Source # 
Instance details

Defined in Rollbar.Item.Request

Methods

(==) :: Method -> Method -> Bool #

(/=) :: Method -> Method -> Bool #

Show Method Source # 
Instance details

Defined in Rollbar.Item.Request

Generic Method Source # 
Instance details

Defined in Rollbar.Item.Request

Associated Types

type Rep Method :: * -> * #

Methods

from :: Method -> Rep Method x #

to :: Rep Method x -> Method #

ToJSON Method Source # 
Instance details

Defined in Rollbar.Item.Request

FromJSON Method Source # 
Instance details

Defined in Rollbar.Item.Request

type Rep Method Source # 
Instance details

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 # 
Instance details

Defined in Rollbar.Item.MissingHeaders

Methods

(==) :: MissingHeaders headers -> MissingHeaders headers -> Bool #

(/=) :: MissingHeaders headers -> MissingHeaders headers -> Bool #

Show (MissingHeaders headers) Source # 
Instance details

Defined in Rollbar.Item.MissingHeaders

Methods

showsPrec :: Int -> MissingHeaders headers -> ShowS #

show :: MissingHeaders headers -> String #

showList :: [MissingHeaders headers] -> ShowS #

RemoveHeaders headers => ToJSON (MissingHeaders headers) Source # 
Instance details

Defined in Rollbar.Item.MissingHeaders

FromJSON (MissingHeaders headers) Source # 
Instance details

Defined in Rollbar.Item.MissingHeaders

newtype QueryString Source #

The raw querystring.

Constructors

QueryString ByteString 
Instances
Eq QueryString Source # 
Instance details

Defined in Rollbar.Item.Request

Show QueryString Source # 
Instance details

Defined in Rollbar.Item.Request

Generic QueryString Source # 
Instance details

Defined in Rollbar.Item.Request

Associated Types

type Rep QueryString :: * -> * #

ToJSON QueryString Source # 
Instance details

Defined in Rollbar.Item.Request

FromJSON QueryString Source # 
Instance details

Defined in Rollbar.Item.Request

type Rep QueryString Source # 
Instance details

Defined in Rollbar.Item.Request

type Rep QueryString = D1 (MetaData "QueryString" "Rollbar.Item.Request" "rollbar-hs-0.3.1.0-AHXin9WUqD3IOtR3mTqHpy" True) (C1 (MetaCons "QueryString" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ByteString)))

newtype RawBody Source #

The raw request body as a ByteString.

Constructors

RawBody ByteString 
Instances
Eq RawBody Source # 
Instance details

Defined in Rollbar.Item.Request

Methods

(==) :: RawBody -> RawBody -> Bool #

(/=) :: RawBody -> RawBody -> Bool #

Show RawBody Source # 
Instance details

Defined in Rollbar.Item.Request

IsString RawBody Source # 
Instance details

Defined in Rollbar.Item.Request

Methods

fromString :: String -> RawBody #

Generic RawBody Source # 
Instance details

Defined in Rollbar.Item.Request

Associated Types

type Rep RawBody :: * -> * #

Methods

from :: RawBody -> Rep RawBody x #

to :: Rep RawBody x -> RawBody #

ToJSON RawBody Source # 
Instance details

Defined in Rollbar.Item.Request

FromJSON RawBody Source # 
Instance details

Defined in Rollbar.Item.Request

type Rep RawBody Source # 
Instance details

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)))

newtype URL Source #

The URL as a slightly more useful structure.

Constructors

URL (Maybe ByteString, [Text]) 
Instances
Eq URL Source # 
Instance details

Defined in Rollbar.Item.Request

Methods

(==) :: URL -> URL -> Bool #

(/=) :: URL -> URL -> Bool #

Show URL Source # 
Instance details

Defined in Rollbar.Item.Request

Methods

showsPrec :: Int -> URL -> ShowS #

show :: URL -> String #

showList :: [URL] -> ShowS #

Generic URL Source # 
Instance details

Defined in Rollbar.Item.Request

Associated Types

type Rep URL :: * -> * #

Methods

from :: URL -> Rep URL x #

to :: Rep URL x -> URL #

ToJSON URL Source # 
Instance details

Defined in Rollbar.Item.Request

FromJSON URL Source # 
Instance details

Defined in Rollbar.Item.Request

type Rep URL Source # 
Instance details

Defined in Rollbar.Item.Request

type Rep URL = D1 (MetaData "URL" "Rollbar.Item.Request" "rollbar-hs-0.3.1.0-AHXin9WUqD3IOtR3mTqHpy" True) (C1 (MetaCons "URL" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (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 # 
Instance details

Defined in Rollbar.Item.MissingHeaders

(KnownSymbol header, RemoveHeaders headers) => RemoveHeaders (header ': headers) Source # 
Instance details

Defined in Rollbar.Item.MissingHeaders

Methods

removeHeaders :: MissingHeaders (header ': headers) -> RequestHeaders