gl-store-s3.js/node_modules/aws-sdk/lib/http_response.d.ts

34 lines
920 B
TypeScript
Raw Normal View History

2019-05-08 10:43:08 +00:00
import * as stream from 'stream';
interface XMLHttpRequest {}
/**
* The low level HTTP response object, encapsulating all HTTP header and body data returned from the request.
*/
export class HttpResponse {
/**
* Disables buffering on the HTTP response and returns the stream for reading.
*/
createUnbufferedStream(): stream.Readable|XMLHttpRequest
/**
* The response body payload.
*/
body: string|Buffer|Uint8Array;
/**
* A map of response header keys and their respective values.
*/
headers: {
[key: string]: string;
}
/**
* The HTTP status code of the response (e.g., 200, 404).
*/
statusCode: number;
/**
* The HTTP status message of the response (e.g., 'Bad Request', 'Not Found')
*/
statusMessage: string;
/**
* Whether this response is being streamed at a low-level.
*/
streaming: boolean;
}