UNPKG

@tnwx/kits

Version:

TNWX 微信系开发脚手架之工具集合

19 lines (18 loc) 937 B
/// <reference types="node" /> import { HttpDelegate } from './HttpKit'; /** * @author Javen * @copyright javendev@126.com * @description 使用 Axios 实现网络请求 */ export declare class AxiosHttpKit implements HttpDelegate { httpGet(url: string, options?: any): Promise<any>; httpGetToResponse(url: string, options?: any): Promise<any>; httpPost(url: string, data: string, options?: any): Promise<any>; httpPostToResponse(url: string, data: string, options?: any): Promise<any>; httpPutToResponse(url: string, data: string, options?: any): Promise<any>; httpDeleteToResponse(url: string, options?: any): Promise<any>; httpPostWithCert(url: string, data: string, certFileContent: Buffer, passphrase: string): Promise<any>; upload(url: string, filePath: string, params?: string): Promise<any>; uploadToResponse(url: string, filePath: string, params?: string, options?: any): Promise<any>; }