Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Documentation
Information about an HTTP request.
See: newHttp
smart constructor.
Instances
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.