You are viewing the documentation for an older major version of the AWS SDK for JavaScript.
The modular AWS SDK for JavaScript (v3), the latest major version of AWS SDK for JavaScript, is now stable and recommended for general use.
For more information, see the
Migration Guide and
API Reference.
Class: AWS.HttpRequest
- Inherits:
-
Object
- Object
- AWS.HttpRequest
- Defined in:
- lib/http.js
Overview
The low level HTTP request object, encapsulating all HTTP header and body data sent by a service request.
Property Summary collapse
-
body ⇒ String
readwrite
The request body payload.
-
endpoint ⇒ AWS.Endpoint
readwrite
The endpoint for the request.
-
headers ⇒ map<String,String>
readwrite
A map of header keys and their respective values.
-
method ⇒ String
readwrite
The HTTP method of the request.
-
path ⇒ String
readwrite
The path portion of the URI, e.g., "/list/?start=5&num=10".
Method Summary collapse
-
getUserAgentHeaderName() ⇒ void
-
pathname() ⇒ String
The part of the path excluding the query string.
-
search() ⇒ String
The query string portion of the path.
Property Details
body ⇒ String (readwrite)
Returns the request body payload.
headers ⇒ map<String,String> (readwrite)
Returns a map of header keys and their respective values.
method ⇒ String (readwrite)
Returns the HTTP method of the request.
path ⇒ String (readwrite)
Returns the path portion of the URI, e.g., "/list/?start=5&num=10".