@lelantos-org/sdk / services / JsonClient
Interface: JsonClient
Defined in: @lelantos-org/sdk/dist/services/http/json-client.d.ts:24
Properties
raw
ts
readonly raw: HttpClient;Defined in: @lelantos-org/sdk/dist/services/http/json-client.d.ts:29
Escape hatch for non-JSON responses.
Methods
del()
ts
del(path, opts?): Promise<void>;Defined in: @lelantos-org/sdk/dist/services/http/json-client.d.ts:27
Parameters
| Parameter | Type |
|---|---|
path | string |
opts? | JsonRequestOptions |
Returns
Promise<void>
get()
ts
get<T>(path, opts?): Promise<T>;Defined in: @lelantos-org/sdk/dist/services/http/json-client.d.ts:25
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type |
|---|---|
path | string |
opts? | JsonRequestOptions |
Returns
Promise<T>
post()
ts
post<T>(
path,
body,
opts?
): Promise<T>;Defined in: @lelantos-org/sdk/dist/services/http/json-client.d.ts:26
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type |
|---|---|
path | string |
body | unknown |
opts? | JsonRequestOptions |
Returns
Promise<T>