Cumulocity Web SDK - v1021.62.8
Preparing search index...
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
FetchClient
(
authOrBaseUrl
?:
string
|
IAuthentication
,
baseUrl
?:
string
,
)
:
FetchClient
Parameters
Optional
authOrBaseUrl
:
string
|
IAuthentication
Optional
baseUrl
:
string
Returns
FetchClient
Properties
Optional
base
Url
baseUrl
?:
string
default
Headers
defaultHeaders
:
{}
= {}
tenant
tenant
:
string
= ''
Methods
fetch
fetch
(
url
:
string
,
init
?:
IFetchOptions
)
:
Promise
<
IFetchResponse
>
Parameters
url
:
string
Optional
init
:
IFetchOptions
Returns
Promise
<
IFetchResponse
>
get
Cometd
Handshake
getCometdHandshake
(
config
?:
any
)
:
any
Parameters
config
:
any
= {}
Returns
any
get
Fetch
Options
getFetchOptions
(
options
?:
IFetchOptions
)
:
IFetchOptions
Parameters
options
:
IFetchOptions
= {}
Returns
IFetchOptions
get
Url
getUrl
(
url
?:
string
,
options
?:
IFetchOptions
)
:
string
Parameters
url
:
string
= ''
Optional
options
:
IFetchOptions
Returns
string
set
Auth
setAuth
(
auth
:
IAuthentication
)
:
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.62.8
Loading...