http/client-async
Documentation
- source: http/client-async.ts
Overview
Classes
HttpAsyncClient
getAsync()
Executes an asynchronous HTTP GET request.
tsgetAsync(url: string, config: HttpClientAsyncConfig, options: HttpClientRequestOptions): void;
Parameter Type Description urlstringThe target URL. configHttpClientAsyncConfigThe callback configuration object. optionsHttpClientRequestOptionsRequest configuration options (e.g., headers, body, params). Returns
- Type:
void- Description:
postAsync()
Executes an asynchronous HTTP POST request.
tspostAsync(url: string, config: HttpClientAsyncConfig, options: HttpClientRequestOptions): void;
Parameter Type Description urlstringThe target URL. configHttpClientAsyncConfigThe callback configuration object. optionsHttpClientRequestOptionsRequest configuration options. Returns
- Type:
void- Description:
putAsync()
Executes an asynchronous HTTP PUT request.
tsputAsync(url: string, config: HttpClientAsyncConfig, options: HttpClientRequestOptions): void;
Parameter Type Description urlstringThe target URL. configHttpClientAsyncConfigThe callback configuration object. optionsHttpClientRequestOptionsRequest configuration options. Returns
- Type:
void- Description:
patchAsync()
Executes an asynchronous HTTP PATCH request.
tspatchAsync(url: string, config: HttpClientAsyncConfig, options: HttpClientRequestOptions): void;
Parameter Type Description urlstringThe target URL. configHttpClientAsyncConfigThe callback configuration object. optionsHttpClientRequestOptionsRequest configuration options. Returns
- Type:
void- Description:
deleteAsync()
Executes an asynchronous HTTP DELETE request.
tsdeleteAsync(url: string, config: HttpClientAsyncConfig, options: HttpClientRequestOptions): void;
Parameter Type Description urlstringThe target URL. configHttpClientAsyncConfigThe callback configuration object. optionsHttpClientRequestOptionsRequest configuration options. Returns
- Type:
void- Description:
headAsync()
Executes an asynchronous HTTP HEAD request.
tsheadAsync(url: string, config: HttpClientAsyncConfig, options: HttpClientRequestOptions): void;
Parameter Type Description urlstringThe target URL. configHttpClientAsyncConfigThe callback configuration object. optionsHttpClientRequestOptionsRequest configuration options. Returns
- Type:
void- Description:
traceAsync()
Executes an asynchronous HTTP TRACE request.
tstraceAsync(url: string, config: HttpClientAsyncConfig, options: HttpClientRequestOptions): void;
Parameter Type Description urlstringThe target URL. configHttpClientAsyncConfigThe callback configuration object. optionsHttpClientRequestOptionsRequest configuration options. Returns
- Type:
void- Description:
execute()
Initiates the execution of queued asynchronous requests (depending on the underlying Java client's threading model).
tsexecute(): void;Returns
- Type:
void- Description:
