You are reading the documentation for legacy, which is no longer the latest version. Switch to connect v2
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.
export type RequestSender = (
methodName: string,
params: unknown[],
config?: RequestConfig) => Promise<any>;