Class: AWS.HttpResponse
- Inherits:
-
Object
- Object
- AWS.HttpResponse
- Defined in:
- lib/http.js
Overview
The low level HTTP response object, encapsulating all HTTP header and body data returned from the request.
Property Summary
-
body ⇒ String
readwrite
The response body payload.
-
headers ⇒ map<String,String>
readwrite
A map of response header keys and their respective values.
-
statusCode ⇒ Integer
readwrite
The HTTP status code of the response (e.g., 200, 404).
-
streaming ⇒ Boolean
readwrite
Whether this response is being streamed at a low-level.
Method Summary
-
createUnbufferedStream() ⇒ Stream, ...
Disables buffering on the HTTP response and returns the stream for reading.
Property Details
headers ⇒ map<String,String> (readwrite)
Returns a map of response header keys and their respective values
streaming ⇒ Boolean (readwrite)
Returns whether this response is being streamed at a low-level.
Defaults to false
(buffered reads). Do not modify this manually, use
createUnbufferedStream() to convert the stream to unbuffered mode
instead.
Method Details
createUnbufferedStream() ⇒ Stream, ...
This object is only available after the AWS.Request~httpHeaders event has fired. This method must be called prior to AWS.Request~httpData.
Disables buffering on the HTTP response and returns the stream for reading.