Skip to content

Class: ResourcefulAxiosHttpService ​

Implements ​

Constructors ​

Constructor ​

ts
new ResourcefulAxiosHttpService(instance: Axios): ResourcefulAxiosHttpService;

Parameters ​

ParameterType
instanceAxios

Returns ​

ResourcefulAxiosHttpService

Properties ​

PropertyModifierType
requestMiddlewarereadonlyReadonly<ResourcefulHttpMiddlewareProxy<ResourcefulHttpRequestMiddlewareFn>>
responseMiddlewarereadonlyReadonly<ResourcefulHttpMiddlewareProxy<ResourcefulHttpResponseMiddlewareFn>>

Methods ​

delete() ​

ts
delete<T>(url: string, options?: Omit<ResourcefulHttpRequestOptions, "url" | "method">): Promise<ResourcefulHttpResponse<T>>;

Type Parameters ​

Type ParameterDefault type
Tunknown

Parameters ​

ParameterType
urlstring
options?Omit<ResourcefulHttpRequestOptions, "url" | "method">

Returns ​

Promise<ResourcefulHttpResponse<T>>

Implementation of ​

ResourcefulHttpService.delete


get() ​

ts
get<T>(url: string, options?: Omit<ResourcefulHttpRequestOptions, "url" | "method">): Promise<ResourcefulHttpResponse<T>>;

Type Parameters ​

Type ParameterDefault type
Tunknown

Parameters ​

ParameterType
urlstring
options?Omit<ResourcefulHttpRequestOptions, "url" | "method">

Returns ​

Promise<ResourcefulHttpResponse<T>>

Implementation of ​

ResourcefulHttpService.get


ts
head<T>(url: string, options?: Omit<ResourcefulHttpRequestOptions, "url" | "method">): Promise<ResourcefulHttpResponse<T>>;

Type Parameters ​

Type ParameterDefault type
Tunknown

Parameters ​

ParameterType
urlstring
options?Omit<ResourcefulHttpRequestOptions, "url" | "method">

Returns ​

Promise<ResourcefulHttpResponse<T>>

Implementation of ​

ResourcefulHttpService.head


patch() ​

ts
patch<T>(
   url: string,
   data?: any,
options?: Omit<ResourcefulHttpRequestOptions, "url" | "method">): Promise<ResourcefulHttpResponse<T>>;

Type Parameters ​

Type ParameterDefault type
Tunknown

Parameters ​

ParameterType
urlstring
data?any
options?Omit<ResourcefulHttpRequestOptions, "url" | "method">

Returns ​

Promise<ResourcefulHttpResponse<T>>

Implementation of ​

ResourcefulHttpService.patch


post() ​

ts
post<T>(
   url: string,
   data?: any,
options?: Omit<ResourcefulHttpRequestOptions, "url" | "method">): Promise<ResourcefulHttpResponse<T>>;

Type Parameters ​

Type ParameterDefault type
Tunknown

Parameters ​

ParameterType
urlstring
data?any
options?Omit<ResourcefulHttpRequestOptions, "url" | "method">

Returns ​

Promise<ResourcefulHttpResponse<T>>

Implementation of ​

ResourcefulHttpService.post


put() ​

ts
put<T>(
   url: string,
   data?: any,
options?: Omit<ResourcefulHttpRequestOptions, "url" | "method">): Promise<ResourcefulHttpResponse<T>>;

Type Parameters ​

Type ParameterDefault type
Tunknown

Parameters ​

ParameterType
urlstring
data?any
options?Omit<ResourcefulHttpRequestOptions, "url" | "method">

Returns ​

Promise<ResourcefulHttpResponse<T>>

Implementation of ​

ResourcefulHttpService.put


request() ​

ts
request<T>(options: ResourcefulHttpRequestOptions): Promise<ResourcefulHttpResponse<T>>;

Type Parameters ​

Type ParameterDefault type
Tunknown

Parameters ​

ParameterType
optionsResourcefulHttpRequestOptions

Returns ​

Promise<ResourcefulHttpResponse<T>>

Implementation of ​

ResourcefulHttpService.request