Alokai

RequestSender

Represents a function type for sending HTTP requests, abstracting the complexity of request configuration.

This type is created via a factory function that configures it with common settings, such as base URLs and default headers.

It simplifies making HTTP requests by handling URL construction, parameter serialization, and applying default and overridden configurations.

type RequestSender = (
methodName: string,
params: unknown[],
config?: RequestConfig) => Promise<any>;

Referenced Types

On this page