libZSservicesZSamazonka-xrayZSamazonka-xray
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.XRay.Types.Http

Description

 
Synopsis

Documentation

data Http Source #

Information about an HTTP request.

See: newHttp smart constructor.

Constructors

Http' 

Fields

Instances

Instances details
Eq Http Source # 
Instance details

Defined in Amazonka.XRay.Types.Http

Methods

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

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

Read Http Source # 
Instance details

Defined in Amazonka.XRay.Types.Http

Show Http Source # 
Instance details

Defined in Amazonka.XRay.Types.Http

Methods

showsPrec :: Int -> Http -> ShowS #

show :: Http -> String #

showList :: [Http] -> ShowS #

Generic Http Source # 
Instance details

Defined in Amazonka.XRay.Types.Http

Associated Types

type Rep Http :: Type -> Type #

Methods

from :: Http -> Rep Http x #

to :: Rep Http x -> Http #

NFData Http Source # 
Instance details

Defined in Amazonka.XRay.Types.Http

Methods

rnf :: Http -> () #

Hashable Http Source # 
Instance details

Defined in Amazonka.XRay.Types.Http

Methods

hashWithSalt :: Int -> Http -> Int #

hash :: Http -> Int #

FromJSON Http Source # 
Instance details

Defined in Amazonka.XRay.Types.Http

type Rep Http Source # 
Instance details

Defined in Amazonka.XRay.Types.Http

type Rep Http = D1 ('MetaData "Http" "Amazonka.XRay.Types.Http" "libZSservicesZSamazonka-xrayZSamazonka-xray" 'False) (C1 ('MetaCons "Http'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "httpMethod") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "clientIp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "userAgent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpURL") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

newHttp :: Http Source #

Create a value of Http with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:httpMethod:Http', http_httpMethod - The request method.

$sel:httpStatus:Http', http_httpStatus - The response status.

$sel:clientIp:Http', http_clientIp - The IP address of the requestor.

$sel:userAgent:Http', http_userAgent - The request's user agent string.

$sel:httpURL:Http', http_httpURL - The request URL.

http_httpMethod :: Lens' Http (Maybe Text) Source #

The request method.

http_httpStatus :: Lens' Http (Maybe Int) Source #

The response status.

http_clientIp :: Lens' Http (Maybe Text) Source #

The IP address of the requestor.

http_userAgent :: Lens' Http (Maybe Text) Source #

The request's user agent string.

http_httpURL :: Lens' Http (Maybe Text) Source #

The request URL.