Class: GoAxiosAdapter

GoAxiosAdapter

Adapter for GoAxiosServices to implement IHttpClient interface. Implements the Adapter pattern to integrate with existing axios service.

new GoAxiosAdapter()

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/src/adapters/GoAxiosAdapter.ts, line 4

Methods

handleError(error)

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/src/adapters/GoAxiosAdapter.ts, line 51

Handles and transforms errors from the HTTP client.

Name Type Description
error

The original error

Returns:
Transformed error with consistent format

mapToAxiosConfig(config)

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/src/adapters/GoAxiosAdapter.ts, line 36

Maps HttpRequestConfig to Axios configuration format.

Name Type Description
config

HTTP request configuration

Returns:
Axios-compatible configuration

asyncrequest(config)

Interactions/IFC/interact/GoIFCComponents/Components/WorkOrderComponent/src/adapters/GoAxiosAdapter.ts, line 22

Sends an HTTP request using GoAxiosServices.

Name Type Description
config

Request configuration

Returns:
Promise resolving to the response