Skip to content

Class: ResourcefulFetchHttpService

Implements

Constructors

Constructor

ts
new ResourcefulFetchHttpService(instance: KyInstance): ResourcefulFetchHttpService;

Parameters

ParameterType
instanceKyInstance

Returns

ResourcefulFetchHttpService

Properties

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

Methods

delete()

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

Type Parameters

Type ParameterDefault type
Tunknown

Parameters

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

Returns

Promise<ResourcefulHttpResponse<T>>

Implementation of

ResourcefulHttpService.delete


get()

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

Type Parameters

Type ParameterDefault type
Tunknown

Parameters

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

Returns

Promise<ResourcefulHttpResponse<T>>

Implementation of

ResourcefulHttpService.get


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

Type Parameters

Type ParameterDefault type
Tunknown

Parameters

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

Returns

Promise<ResourcefulHttpResponse<T>>

Implementation of

ResourcefulHttpService.head


patch()

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

Type Parameters

Type ParameterDefault type
Tunknown

Parameters

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

Returns

Promise<ResourcefulHttpResponse<T>>

Implementation of

ResourcefulHttpService.patch


post()

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

Type Parameters

Type ParameterDefault type
Tunknown

Parameters

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

Returns

Promise<ResourcefulHttpResponse<T>>

Implementation of

ResourcefulHttpService.post


put()

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

Type Parameters

Type ParameterDefault type
Tunknown

Parameters

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

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