Search
Preparing search index...
The search index is not available
cv-dialog-sdk
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"ws"
FetchClient
Class FetchClient
Hierarchy
FetchClient
Implements
Client
Index
Constructors
constructor
Properties
_client
Mode
_last
Activity
Accessors
last
Activity
Methods
assert
Json
Content
Type
delete
Json
encode
Query
Params
get
Blob
get
Json
get
Text
is
Json
Content
Type
post
Json
post
Multipart
process
Request
put
Json
set
Client
Mode
Constructors
constructor
new
Fetch
Client
(
clientMode
?:
ClientMode
)
:
FetchClient
Parameters
Default value
clientMode:
ClientMode
= ClientMode.ONLINE
Returns
FetchClient
Properties
Private
_client
Mode
_client
Mode
:
ClientMode
Private
_last
Activity
_last
Activity
:
Date
= new Date()
Accessors
last
Activity
get
lastActivity
(
)
:
Date
Returns
Date
Methods
Private
assert
Json
Content
Type
assert
Json
Content
Type
(
contentType
:
string
)
:
Promise
<
void
>
Parameters
contentType:
string
Returns
Promise
<
void
>
delete
Json
delete
Json
(
baseUrl
:
string
, resourcePath
:
string
)
:
Promise
<
JsonClientResponse
>
Parameters
baseUrl:
string
resourcePath:
string
Returns
Promise
<
JsonClientResponse
>
Private
encode
Query
Params
encode
Query
Params
(
queryParams
:
StringDictionary
)
:
string
Parameters
queryParams:
StringDictionary
Returns
string
get
Blob
get
Blob
(
baseUrl
:
string
, resourcePath
?:
string
)
:
Promise
<
BlobClientResponse
>
Parameters
baseUrl:
string
Optional
resourcePath:
string
Returns
Promise
<
BlobClientResponse
>
get
Json
get
Json
(
baseUrl
:
string
, resourcePath
?:
string
, queryParams
?:
StringDictionary
)
:
Promise
<
JsonClientResponse
>
Parameters
baseUrl:
string
Optional
resourcePath:
string
Optional
queryParams:
StringDictionary
Returns
Promise
<
JsonClientResponse
>
get
Text
get
Text
(
baseUrl
:
string
, resourcePath
?:
string
)
:
Promise
<
TextClientResponse
>
Parameters
baseUrl:
string
Optional
resourcePath:
string
Returns
Promise
<
TextClientResponse
>
Private
is
Json
Content
Type
is
Json
Content
Type
(
contentType
:
string
)
:
boolean
Parameters
contentType:
string
Returns
boolean
post
Json
post
Json
(
baseUrl
:
string
, resourcePath
:
string
, jsonBody
?:
StringDictionary
)
:
Promise
<
JsonClientResponse
>
Parameters
baseUrl:
string
resourcePath:
string
Optional
jsonBody:
StringDictionary
Returns
Promise
<
JsonClientResponse
>
post
Multipart
post
Multipart
(
baseUrl
:
string
, resourcePath
:
string
, formData
:
FormData
)
:
Promise
<
VoidClientResponse
>
Parameters
baseUrl:
string
resourcePath:
string
formData:
FormData
Returns
Promise
<
VoidClientResponse
>
Private
process
Request
process
Request
(
url
:
string
, method
:
FetchMethod
, body
?:
any
, headers
?:
object
)
:
Promise
<
Response
>
Parameters
url:
string
method:
FetchMethod
Optional
body:
any
Optional
headers:
object
[
index:
string
]:
string
Returns
Promise
<
Response
>
put
Json
put
Json
(
baseUrl
:
string
, resourcePath
:
string
, jsonBody
?:
StringDictionary
)
:
Promise
<
JsonClientResponse
>
Parameters
baseUrl:
string
resourcePath:
string
Optional
jsonBody:
StringDictionary
Returns
Promise
<
JsonClientResponse
>
set
Client
Mode
set
Client
Mode
(
clientMode
:
ClientMode
)
:
void
Parameters
clientMode:
ClientMode
Returns
void
Globals
"briefcase-
template"
"client"
"dialog"
"models"
"persistence"
"persistence-
tools"
"print"
"service-
worker"
"util"
"version"
"ws"
Fetch
Client
constructor
_client
Mode
_last
Activity
last
Activity
assert
Json
Content
Type
delete
Json
encode
Query
Params
get
Blob
get
Json
get
Text
is
Json
Content
Type
post
Json
post
Multipart
process
Request
put
Json
set
Client
Mode
Fetch
Method
Generated using
TypeDoc