Skip to main content

http.Client

Properties#

id#

id: number

Defined in#

http.ts:158

Methods#

delete#

delete<T>(url, options?): Promise<Response<T>>

Makes a DELETE request.

Type parameters#

Name
T

Parameters#

NameTypeDescription
urlstringThe request URL.
options?RequestOptionsThe request options.

Returns#

Promise<Response<T>>

A promise resolving to the response.

Defined in#

http.ts:299


drop#

drop(): Promise<void>

Drops the client instance.

Returns#

Promise<void>

Defined in#

http.ts:169


get#

get<T>(url, options?): Promise<Response<T>>

Makes a GET request.

Type parameters#

Name
T

Parameters#

NameTypeDescription
urlstringThe request URL.
options?RequestOptionsThe request options.

Returns#

Promise<Response<T>>

A promise resolving to the response.

Defined in#

http.ts:227


patch#

patch<T>(url, options?): Promise<Response<T>>

Makes a PATCH request.

Type parameters#

Name
T

Parameters#

NameTypeDescription
urlstringThe request URL.
options?RequestOptionsThe request options.

Returns#

Promise<Response<T>>

A promise resolving to the response.

Defined in#

http.ts:284


post#

post<T>(url, body?, options?): Promise<Response<T>>

Makes a POST request.

Type parameters#

Name
T

Parameters#

NameTypeDescription
urlstringThe request URL.
body?BodyThe body of the request.
options?RequestOptionsThe request options.

Returns#

Promise<Response<T>>

A promise resolving to the response.

Defined in#

http.ts:243


put#

put<T>(url, body?, options?): Promise<Response<T>>

Makes a PUT request.

Type parameters#

Name
T

Parameters#

NameTypeDescription
urlstringThe request URL.
body?BodyThe body of the request.
options?RequestOptionsRequest options.

Returns#

Promise<Response<T>>

A promise resolving to the response.

Defined in#

http.ts:264


request#

request<T>(options): Promise<Response<T>>

Makes an HTTP request.

Type parameters#

Name
T

Parameters#

NameTypeDescription
optionsHttpOptionsThe request options.

Returns#

Promise<Response<T>>

A promise resolving to the response.

Defined in#

http.ts:185