trident-beta
Version:
trident is a sample and lightly tools aims to improve collaboration efficiency between SDET and QA based on initiative from Einstein/TestIT.
12 lines (11 loc) • 592 B
TypeScript
import { AxiosRequestConfig, AxiosResponse } from "axios";
declare class HttpClient {
get(url: string, config: AxiosRequestConfig): Promise<AxiosResponse>;
post(url: string, config: AxiosRequestConfig): Promise<AxiosResponse>;
put(url: string, config: AxiosRequestConfig): Promise<AxiosResponse>;
patch(url: string, config: AxiosRequestConfig): Promise<AxiosResponse>;
delete(url: string, config: AxiosRequestConfig): Promise<AxiosResponse>;
head(url: string, config: AxiosRequestConfig): Promise<AxiosResponse>;
private _sendRequest;
}
export default HttpClient;