Constructor
new ServerEndpoint(propertiesopt)
Parameters:
| Name |
Type |
Attributes |
Description |
properties |
Object
|
<optional>
|
The properties used to initialize the object.
Properties
| Name |
Type |
Description |
id |
String
|
Gets or sets the identifier of the item. |
label |
String
|
Gets or sets the label of the item. |
absoluteURL |
Boolean
|
Gets or sets a value indicating whether the URL is absolute or relative. |
url |
String
|
Gets or sets the API endpoint for file uploads or data requests. |
method |
String
|
Gets or sets the HTTP method used for requests (e.g., "POST", "GET"). |
headers |
Object
|
Gets or sets the request headers for the API call. |
params |
Object
|
Gets or sets additional parameters sent with the request. |
timeout |
Number
|
null
|
Gets or sets the timeout in milliseconds for the request. |
credentials |
String
|
Gets or sets the credentials mode for the fetch request. |
responseType |
String
|
Gets or sets the expected response type ('json', 'text', 'blob'). |
preFetch |
function
|
null
|
Gets or sets the hook executed before the fetch request. |
postFetch |
function
|
null
|
Gets or sets the hook executed after the fetch request completes. |
|
Members
absoluteURL :boolean
Gets or sets a value indicating whether the URL is absolute or relative.
Type:
credentials :string
Gets or sets the credentials mode for the fetch request. E.g., 'same-origin', 'include', or 'omit'.
Type:
Gets or sets the request headers for the API call.
Type:
id :string
Gets or sets the id of the item.
Type:
label :string
Gets or sets the label of the item.
Type:
method :string
Gets or sets the HTTP method used for requests (e.g., "POST", "GET").
Type:
params :Object
Gets or sets additional parameters sent with the request.
Type:
postFetch :function
Gets or sets the optional hook executed after the fetch request completes. Can be used to handle the result or update the context.
Type:
preFetch :function|null
Gets or sets the optional hook executed before the fetch request. Can be used to modify the request parameters or context.
Type:
responseType :string
Gets or sets the expected response type. Determines how the fetch response is parsed.
Supported values: 'json', 'text', 'blob'.
Type:
timeout :number|null
Gets or sets the timeout in milliseconds for the request. If null, no timeout is applied.
Type:
url :string
Gets or sets the API endpoint for file uploads or data requests.
Type: