UNPKG

@sophons/request

Version:

🚀 Probably the best Node.js HTTP request component, It also contains a rich stream processing

14 lines (13 loc) • 492 B
import { FormDataOptions, RequestOptions, AxiosResponse } from './common'; /** * Transform request query */ export declare const transformQuery: (url: string, query: any) => string; /** * Fast create an http or https request. */ export declare const fastRequest: <T = any>(options: RequestOptions) => Promise<AxiosResponse<T>>; /** * Fast create an http or https form-data request. */ export declare const fastFormData: <T = any>(options: FormDataOptions) => Promise<AxiosResponse<T>>;