Hierarchy

  • DispatchHandlers

Methods

  • Invoked when a body chunk is sent to the server. May be invoked multiple times for chunked requests

    Parameters

    • chunkSize: number
    • totalBytesSent: number

    Returns void

  • Invoked when response payload and trailers have been received and the request has completed.

    Parameters

    • trailers: null | string[]

    Returns void

  • Invoked before request is dispatched on socket. May be invoked multiple times when a request is retried when the request at the head of the pipeline fails.

    Parameters

    • abort: (() => void)
        • (): void
        • Returns void

    Returns void

  • Invoked when response payload data is received.

    Parameters

    Returns boolean

  • Invoked when an error has occurred.

    Parameters

    • err: Error

    Returns void

  • Invoked when statusCode and headers have been received. May be invoked multiple times due to 1xx informational headers.

    Parameters

    • statusCode: number
    • headers: null | string[] | Buffer[]
    • resume: (() => void)
        • (): void
        • Returns void

    Returns boolean

  • Invoked when request is upgraded either due to a Upgrade header or CONNECT method.

    Parameters

    • statusCode: number
    • headers: null | string[] | Buffer[]
    • socket: Duplex

    Returns void

Generated using TypeDoc