Transport layer on top of node http or https library.

Implements

Constructors

Methods

Constructors

Methods

  • Sends requestBody and returns response chunks in an async iterable that can be easily consumed in an for-await loop.

    Parameters

    • path: string

      HTTP request path

    • body: string
    • options: SendOptions

      send options

    Returns AsyncIterableIterator<Uint8Array>

    async iterable