构造函数

属性

baseUrl?: string
interceptors?: Interceptors

拦截器

timeout?: number
useDataWrapper: boolean

是否对结果进行序列话后返回

方法

  • 参数

    返回 Promise<any>

  • 参数

    • route: string
    • options: RequestInit & {
          responseType?:
              | "text"
              | "blob"
              | "json"
              | "arrayBuffer";
      } & {
          params?: null | Record<string, any>;
      } & {
          data?: any;
      }

    返回 Promise<any>

  • 参数

    返回 Promise<any>

  • 参数

    • route: string

    返回 string

  • 参数

    返回 Promise<any>

  • 参数

    返回 Promise<any>

  • 返回 any