Preparing search index...
The search index is not available
Cumulocity Web SDK - v1021.3.1
Cumulocity Web SDK
FetchClient
Class FetchClient
Implements
IFetchClient
Index
Constructors
constructor
Properties
base
Url?
default
Headers
tenant
Methods
fetch
get
Cometd
Handshake
get
Fetch
Options
get
Url
set
Auth
Constructors
constructor
new
Fetch
Client
(
authOrBaseUrl
?
,
baseUrl
?
)
:
FetchClient
Parameters
Optional
authOrBaseUrl
:
string
|
IAuthentication
Optional
baseUrl
:
string
Returns
FetchClient
Properties
Optional
base
Url
base
Url
?:
string
default
Headers
default
Headers
:
{}
= {}
tenant
tenant
:
string
= ''
Methods
fetch
fetch
(
url
,
init
?
)
:
Promise
<
IFetchResponse
>
Parameters
url
:
string
Optional
init
:
IFetchOptions
Returns
Promise
<
IFetchResponse
>
get
Cometd
Handshake
get
Cometd
Handshake
(
config
?
)
:
any
Parameters
config
:
any
= {}
Returns
any
get
Fetch
Options
get
Fetch
Options
(
options
?
)
:
IFetchOptions
Parameters
options
:
IFetchOptions
= {}
Returns
IFetchOptions
get
Url
get
Url
(
url
?
,
options
?
)
:
string
Parameters
url
:
string
= ''
Optional
options
:
IFetchOptions
Returns
string
set
Auth
set
Auth
(
auth
)
:
void
Parameters
auth
:
IAuthentication
Returns
void
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
base
Url
default
Headers
tenant
Methods
fetch
get
Cometd
Handshake
get
Fetch
Options
get
Url
set
Auth
Cumulocity Web SDK - v1021.3.1
Loading...