跳到主要内容
版本:Next

HttpService

Implements

Index

Constructors

constructor

Accessors

defaults

  • get defaults(): Omit<AxiosDefaults<any>, headers> & {}

interceptors

  • get interceptors(): {}

Methods

delete

  • delete<T, R, D>(url: string, config?: AxiosRequestConfig<D>): Promise<R>
  • Type parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

get

  • get<T, R, D>(url: string, config?: AxiosRequestConfig<D>): Promise<R>
  • Type parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

getUri

  • getUri(config?: AxiosRequestConfig<any>): string

head

  • head<T, R, D>(url: string, config?: AxiosRequestConfig<D>): Promise<R>
  • Type parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

options

  • options<T, R, D>(url: string, config?: AxiosRequestConfig<D>): Promise<R>
  • Type parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

patch

  • patch<T, R, D>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>
  • Type parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

patchForm

  • patchForm<T, R, D>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>
  • Type parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

post

  • post<T, R, D>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>
  • Type parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

postForm

  • postForm<T, R, D>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>
  • Type parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

put

  • put<T, R, D>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>
  • Type parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

putForm

  • putForm<T, R, D>(url: string, data?: D, config?: AxiosRequestConfig<D>): Promise<R>
  • Type parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any

request

  • request<T, R, D>(config: AxiosRequestConfig<D>): Promise<R>
  • Type parameters

    • T = any
    • R = AxiosResponse<T, any>
    • D = any