Constructors
constructor
new Http( baseUrl: string , headers?: any ) : Http
Defined in src/network/Http.ts:30
Parameters
baseUrl: string
Optional headers: any
Methods
cancel
Defined in src/network/Http.ts:104
Returns void
get
get( url: string , opts?: any ) : Promise < AxiosResponse < any > >
Defined in src/network/Http.ts:57
Parameters
url: string
Default value opts: any = undefined
Returns Promise < AxiosResponse < any > >
post
post( url: string , data: any , opts?: any ) : Promise < AxiosResponse < any > >
Defined in src/network/Http.ts:85
Parameters
url: string
data: any
Default value opts: any = undefined
Returns Promise < AxiosResponse < any > >
Static request
request( url: string , opts?: any ) : Promise < AxiosResponse < any > >
Defined in src/network/Http.ts:116
Parameters
url: string
Default value opts: any = undefined
Returns Promise < AxiosResponse < any > >
Legend
Constructor
Property
Method
Accessor
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Static property
Static method
An
Http
object is an adapter that performs HTTP requests using the underlying request library.