@ackee/antonio-core
Version:
A HTTP client built on fetch API with axios-like API.
8 lines (7 loc) • 470 B
TypeScript
import type { RequestMethod, FinalRequestParams, FinalRequestConfig } from '../../../types';
import type { GeneralConfig } from '../../core/general-config';
export declare function setContentTypeHeader(method: RequestMethod, config: FinalRequestConfig, body?: BodyInit): Headers;
export declare function createRequestInit(method: RequestMethod, requestParams: FinalRequestParams, generalConfig: GeneralConfig): {
requestUrl: string;
requestInit: RequestInit;
};