RequestConfig
User-defined configuration for HTTP requests, extending BaseConfig. Allows custom headers, supporting both strings and arrays of strings for header values.
type RequestConfig = BaseConfig & {
compression?: CompressionOptions;
getConfigSwitcherHeader?: (params: GetConfigSwitcherHeaderParams) => string;
headers?: (() => Promise<Record<string, string | string[]>>) | (() => Record<string, string | string[]>) | Promise<Record<string, string | string[]>> | Record<string, string | string[]>;
subscribe?: boolean;
};