Skip to main content

Interface: BeeOptions

Hierarchy

Properties

defaultHeaders

Optional defaultHeaders: Record<string, string>

Object that contains default headers that will be present in all outgoing bee-js requests for instance of Bee class.

Defined in

bee-js/src/types/index.ts:141


fetch

Optional fetch: Fetch

User defined Fetch compatible function

Inherited from

RequestOptions.fetch

Defined in

bee-js/src/types/index.ts:128


onRequest

Optional onRequest: HookCallback<BeeRequest>

Function that registers listener callback for all outgoing HTTP requests that Bee instance makes.

Defined in

bee-js/src/types/index.ts:146


onResponse

Optional onResponse: HookCallback<BeeResponse>

Function that registers listener callback for all incoming HTTP responses that Bee instance made.

Defined in

bee-js/src/types/index.ts:151


retry

Optional retry: number

Configure backoff mechanism for requests retries. Specifies how many retries will be performed before failing a request. Retries are performed for GET, PUT, HEAD, DELETE, OPTIONS and TRACE requests. Default is 2.

Inherited from

RequestOptions.retry

Defined in

bee-js/src/types/index.ts:123


signer

Optional signer: string | Uint8Array | Signer

Signer object or private key of the Signer in form of either hex string or Uint8Array that will be default signer for the instance.

Defined in

bee-js/src/types/index.ts:135


timeout

Optional timeout: number

Timeout of requests in milliseconds

Inherited from

RequestOptions.timeout

Defined in

bee-js/src/types/index.ts:115