Skip to main content

Type Alias: IHttpTransportConfig

type IHttpTransportConfig: object;

The interface representing the configuration of the HTTP transport.

Type declaration

endpoint

endpoint: string;

The network endpoint. It is set to the URL of the network node.

Example

'http://127.0.0.1:8529'

signal?

optional signal: AbortSignal;

The signal to abort the request. If the signal is aborted, the request will be aborted.

Example

new AbortSignal()

Default

undefined

timeout?

optional timeout: number;

The request timeout. If the request is not completed within the timeout, it will be rejected.

Example

1000

Default

20000

Defined

@nilfoundation/niljs/src/transport/types/IHttpTransportConfig.ts:4