Interface Client

interface Client {
    binaryProvider?: (<Req>(requestOptions: ClientRequest<Req>) => Promise<ClientResponse<Buffer>>);
    provider<Req, Res>(requestOptions: ClientRequest<Req>): Promise<ClientResponse<Res>>;
}

Methods

Properties

binaryProvider?: (<Req>(requestOptions: ClientRequest<Req>) => Promise<ClientResponse<Buffer>>)

Sends a request to the specified URL with the given options, that returns a binary response

The options for the request.

The URL to send the request to.

The HTTP method to use, either "GET" or "POST".

An optional path to append to the URL.

The body of the request, applicable for POST requests.

The content type of the request body.

The expected content type of the response.

Optional parameters to include in the request.

An optional method to specify the origin of the request.

Optional configuration overrides for the request.

MMNEPVFCICPMFPCPTTAAATR