Interface: BeeOptions
Hierarchy
↳
BeeOptions
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
fetch
• Optional
fetch: Fetch
User defined Fetch compatible function
Inherited from
Defined in
onRequest
• Optional
onRequest: HookCallback
<BeeRequest
>
Function that registers listener callback for all outgoing HTTP requests that Bee instance makes.
Defined in
onResponse
• Optional
onResponse: HookCallback
<BeeResponse
>
Function that registers listener callback for all incoming HTTP responses that Bee instance made.
Defined in
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
Defined in
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
timeout
• Optional
timeout: number
Timeout of requests in milliseconds