跳到主要内容
版本:Next

HttpServiceFactory

Hierarchy

  • ServiceFactory<AxiosInstance>
    • HttpServiceFactory

Index

Constructors

constructor

Properties

axiosConfig

axiosConfig: any

Methods

createInstance

  • createInstance(config: any, clientName?: any): Promise<AxiosInstance>

get

  • get<U>(id?: string): U
  • Type parameters

    • U = AxiosInstance

getClientKeys

  • getClientKeys(): string[]

getClientPriority

  • getClientPriority(name: string): string

getClients

  • getClients(): Map<string, AxiosInstance>

getDefaultClientName

  • getDefaultClientName(): string

getName

  • getName(): string

has

  • has(id: string): boolean

init

  • init(): Promise<void>

isHighPriority

  • isHighPriority(name: string): boolean

isLowPriority

  • isLowPriority(name: string): boolean

isMediumPriority

  • isMediumPriority(name: string): boolean

stop

  • stop(): Promise<void>