Skip to main content
Version: Next

BaseHttpClient

Interface for user-defined HTTP clients to be used for plain HTTP crawling and for sending additional requests during a crawl.

Implemented by

Index

Methods

sendRequest

  • Perform an HTTP Request and return the complete response.


    Type parameters

    Parameters

    Returns Promise<HttpResponse<TResponseType>>

stream

  • Perform an HTTP Request and return after the response headers are received. The body may be read from a stream contained in the response.


    Parameters

    Returns Promise<StreamingHttpResponse>

Page Options