Skip to content

http/client-async

Documentation

Overview

Classes

HttpAsyncClient

getAsync()

Executes an asynchronous HTTP GET request.

ts
getAsync(url: string, config: HttpClientAsyncConfig, options: HttpClientRequestOptions): void;
ParameterTypeDescription
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.

ts
postAsync(url: string, config: HttpClientAsyncConfig, options: HttpClientRequestOptions): void;
ParameterTypeDescription
urlstringThe target URL.
configHttpClientAsyncConfigThe callback configuration object.
optionsHttpClientRequestOptionsRequest configuration options.

Returns

  • Type: void
  • Description:

putAsync()

Executes an asynchronous HTTP PUT request.

ts
putAsync(url: string, config: HttpClientAsyncConfig, options: HttpClientRequestOptions): void;
ParameterTypeDescription
urlstringThe target URL.
configHttpClientAsyncConfigThe callback configuration object.
optionsHttpClientRequestOptionsRequest configuration options.

Returns

  • Type: void
  • Description:

patchAsync()

Executes an asynchronous HTTP PATCH request.

ts
patchAsync(url: string, config: HttpClientAsyncConfig, options: HttpClientRequestOptions): void;
ParameterTypeDescription
urlstringThe target URL.
configHttpClientAsyncConfigThe callback configuration object.
optionsHttpClientRequestOptionsRequest configuration options.

Returns

  • Type: void
  • Description:

deleteAsync()

Executes an asynchronous HTTP DELETE request.

ts
deleteAsync(url: string, config: HttpClientAsyncConfig, options: HttpClientRequestOptions): void;
ParameterTypeDescription
urlstringThe target URL.
configHttpClientAsyncConfigThe callback configuration object.
optionsHttpClientRequestOptionsRequest configuration options.

Returns

  • Type: void
  • Description:

headAsync()

Executes an asynchronous HTTP HEAD request.

ts
headAsync(url: string, config: HttpClientAsyncConfig, options: HttpClientRequestOptions): void;
ParameterTypeDescription
urlstringThe target URL.
configHttpClientAsyncConfigThe callback configuration object.
optionsHttpClientRequestOptionsRequest configuration options.

Returns

  • Type: void
  • Description:

traceAsync()

Executes an asynchronous HTTP TRACE request.

ts
traceAsync(url: string, config: HttpClientAsyncConfig, options: HttpClientRequestOptions): void;
ParameterTypeDescription
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).

ts
execute(): void;

Returns

  • Type: void
  • Description: