Search
Preparing search index...
The search index is not available
Cognite JavaScript SDK (beta)
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"core/src/httpClient/retryableHttpClient"
RetryableHttpClient
Class RetryableHttpClient
Hierarchy
BasicHttpClient
RetryableHttpClient
CDFHttpClient
Index
Constructors
constructor
Methods
delete
get
get
Base
Url
get
Default
Headers
patch
post
put
set
Base
Url
set
Cluster
set
Default
Header
Constructors
constructor
new
Retryable
Http
Client
(
baseUrl
:
string
, retryValidator
:
RetryValidator
)
:
RetryableHttpClient
Parameters
baseUrl:
string
retryValidator:
RetryValidator
Returns
RetryableHttpClient
Methods
delete
delete<ResponseType>
(
path
:
string
, options
?:
RetryableHttpRequestOptions
)
:
Promise
<
HttpResponse
<
ResponseType
>
>
Type parameters
ResponseType
Parameters
path:
string
Default value
options:
RetryableHttpRequestOptions
= {}
Returns
Promise
<
HttpResponse
<
ResponseType
>
>
get
get<ResponseType>
(
path
:
string
, options
?:
RetryableHttpRequestOptions
)
:
Promise
<
HttpResponse
<
ResponseType
>
>
Type parameters
ResponseType
Parameters
path:
string
Default value
options:
RetryableHttpRequestOptions
= {}
Returns
Promise
<
HttpResponse
<
ResponseType
>
>
get
Base
Url
get
Base
Url
(
)
:
string
Returns
string
get
Default
Headers
get
Default
Headers
(
)
:
HttpHeaders
Returns
HttpHeaders
patch
patch<ResponseType>
(
path
:
string
, options
?:
RetryableHttpRequestOptions
)
:
Promise
<
HttpResponse
<
ResponseType
>
>
Type parameters
ResponseType
Parameters
path:
string
Default value
options:
RetryableHttpRequestOptions
= {}
Returns
Promise
<
HttpResponse
<
ResponseType
>
>
post
post<ResponseType>
(
path
:
string
, options
?:
RetryableHttpRequestOptions
)
:
Promise
<
HttpResponse
<
ResponseType
>
>
Type parameters
ResponseType
Parameters
path:
string
Default value
options:
RetryableHttpRequestOptions
= {}
Returns
Promise
<
HttpResponse
<
ResponseType
>
>
put
put<ResponseType>
(
path
:
string
, options
?:
RetryableHttpRequestOptions
)
:
Promise
<
HttpResponse
<
ResponseType
>
>
Type parameters
ResponseType
Parameters
path:
string
Default value
options:
RetryableHttpRequestOptions
= {}
Returns
Promise
<
HttpResponse
<
ResponseType
>
>
set
Base
Url
set
Base
Url
(
baseUrl
:
string
)
:
void
Parameters
baseUrl:
string
Returns
void
set
Cluster
set
Cluster
(
cluster
:
string
)
:
void
Parameters
cluster:
string
Returns
void
set
Default
Header
set
Default
Header
(
name
:
string
, value
:
string
)
:
this
Parameters
name:
string
value:
string
Returns
this
Globals
"core/src/http
Client/retryable
Http
Client"
Retryable
Http
Client
constructor
delete
get
get
Base
Url
get
Default
Headers
patch
post
put
set
Base
Url
set
Cluster
set
Default
Header
Http
Request
Retry
Validator
Options
Retryable
Http
Request
Retryable
Http
Request
Options