Preparing search index...
The search index is not available
datadog-api-client-typescript
datadog-api-client-typescript
client
IsomorphicFetchHttpLibrary
Class IsomorphicFetchHttpLibrary
Hierarchy
IsomorphicFetchHttpLibrary
Implements
HttpLibrary
Index
Constructors
constructor
Properties
#fetch
backoff
Base
backoff
Multiplier
debug
enable
Retry
max
Retries
zstd
Compressor
Callback
Methods
calculate
Retry
Interval
execute
Request
log
Request
log
Response
send
should
Retry
sleep
Constructors
constructor
new
Isomorphic
Fetch
Http
Library
(
__namedParameters
:
{
fetch
?:
any
;
}
)
:
IsomorphicFetchHttpLibrary
Parameters
__namedParameters:
{
fetch
?:
any
;
}
Optional
fetch
?:
any
Returns
IsomorphicFetchHttpLibrary
Properties
Private
#fetch
#fetch
:
any
backoff
Base
backoff
Base
:
number
backoff
Multiplier
backoff
Multiplier
:
number
debug
debug
:
boolean
= false
enable
Retry
enable
Retry
:
boolean
max
Retries
max
Retries
:
number
zstd
Compressor
Callback
zstd
Compressor
Callback
:
undefined
|
ZstdCompressorCallback
Methods
Private
calculate
Retry
Interval
calculate
Retry
Interval
(
currentAttempt
:
number
, backoffBase
:
number
, backoffMultiplier
:
number
, headers
:
{
[name:
string
]
:
string
;
}
)
:
number
Parameters
currentAttempt:
number
backoffBase:
number
backoffMultiplier:
number
headers:
{
[name:
string
]
:
string
;
}
[
name:
string
]:
string
Returns
number
Private
execute
Request
execute
Request
(
request
:
RequestContext
, body
:
any
, currentAttempt
:
number
, headers
:
{
[key:
string
]
:
string
;
}
)
:
Promise
<
ResponseContext
>
Parameters
request:
RequestContext
body:
any
currentAttempt:
number
headers:
{
[key:
string
]
:
string
;
}
[
key:
string
]:
string
Returns
Promise
<
ResponseContext
>
Private
log
Request
log
Request
(
request
:
RequestContext
)
:
void
Parameters
request:
RequestContext
Returns
void
Private
log
Response
log
Response
(
response
:
ResponseContext
)
:
void
Parameters
response:
ResponseContext
Returns
void
send
send
(
request
:
RequestContext
)
:
Promise
<
ResponseContext
>
Parameters
request:
RequestContext
Returns
Promise
<
ResponseContext
>
Private
should
Retry
should
Retry
(
enableRetry
:
boolean
, currentAttempt
:
number
, maxRetries
:
number
, responseCode
:
number
)
:
boolean
Parameters
enableRetry:
boolean
currentAttempt:
number
maxRetries:
number
responseCode:
number
Returns
boolean
Private
sleep
sleep
(
milliseconds
:
number
)
:
Promise
<
void
>
Parameters
milliseconds:
number
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
datadog-
api-
client-
typescript
client
v1
v2
Isomorphic
Fetch
Http
Library
constructor
#fetch
backoff
Base
backoff
Multiplier
debug
enable
Retry
max
Retries
zstd
Compressor
Callback
calculate
Retry
Interval
execute
Request
log
Request
log
Response
send
should
Retry
sleep
Generated using
TypeDoc