Options
All
  • Public
  • Public/Protected
  • All
Menu

Module @aws-sdk/node-http-handler

Index

References

NodeHttp2Handler

Re-exports NodeHttp2Handler

NodeHttp2HandlerOptions

Re-exports NodeHttp2HandlerOptions

NodeHttpHandler

Re-exports NodeHttpHandler

NodeHttpHandlerOptions

Re-exports NodeHttpHandlerOptions

streamCollector

Re-exports streamCollector

Variables

Const NODEJS_TIMEOUT_ERROR_CODES

NODEJS_TIMEOUT_ERROR_CODES: string[] = ["ECONNRESET", "EPIPE", "ETIMEDOUT"]

Node.js system error codes that indicate timeout.

Const fixturesDir

fixturesDir: string = join(__dirname, "..", "fixtures")

Functions

Const createContinueResponseFunction

  • createContinueResponseFunction(httpResp: HttpResponse): (Anonymous function)

Const createMockHttp2Server

  • createMockHttp2Server(): Http2Server

Const createMockHttpServer

  • createMockHttpServer(): HttpServer

Const createMockHttpsServer

  • createMockHttpsServer(): HttpsServer

Const createResponseFunction

  • createResponseFunction(httpResp: HttpResponse): (Anonymous function)

Const createResponseFunctionWithDelay

  • createResponseFunctionWithDelay(httpResp: HttpResponse, delay: number): (Anonymous function)

Const getTransformedHeaders

  • getTransformedHeaders(headers: IncomingHttpHeaders): HeaderBag

Const setConnectionTimeout

  • setConnectionTimeout(request: ClientRequest, reject: (err: Error) => void, timeoutInMs?: number): void

Const setResponseBody

  • setResponseBody(response: ServerResponse, body: Readable | string): void

Const setResponseHeaders

  • setResponseHeaders(response: ServerResponse, headers: HeaderBag): void

Const setSocketTimeout

  • setSocketTimeout(request: ClientRequest, reject: (err: Error) => void, timeoutInMs?: number): void

Const streamCollector

  • streamCollector(stream: Readable): Promise<Uint8Array>

writeBody

  • writeBody(httpRequest: ClientRequest | ClientHttp2Stream, body?: string | ArrayBuffer | ArrayBufferView | Readable | Uint8Array): void

writeRequestBody

  • writeRequestBody(httpRequest: ClientRequest | ClientHttp2Stream, request: HttpRequest): void