Represents the class that manages handlers for endpoints
Extends
AsyncEventEmitter<RestEvents>Constructs a new instance of the
REST
className | Type | Optional | Description |
---|---|---|---|
options | Partial<RESTOptions> | Yes | None |
The Agent for all requests performed by this manager.
Stops the request handler sweeping interval
Stops the hash sweeping interval
Runs a delete request from the api
Name | Type | Optional | Description |
---|---|---|---|
fullRoute | RouteLike | No | The full route to query |
options | RequestData | Yes | Optional request options |
Runs a get request from the api
Name | Type | Optional | Description |
---|---|---|---|
fullRoute | RouteLike | No | The full route to query |
options | RequestData | Yes | Optional request options |
Runs a patch request from the api
Name | Type | Optional | Description |
---|---|---|---|
fullRoute | RouteLike | No | The full route to query |
options | RequestData | Yes | Optional request options |
Runs a post request from the api
Name | Type | Optional | Description |
---|---|---|---|
fullRoute | RouteLike | No | The full route to query |
options | RequestData | Yes | Optional request options |
Runs a put request from the api
Name | Type | Optional | Description |
---|---|---|---|
fullRoute | RouteLike | No | The full route to query |
options | RequestData | Yes | Optional request options |
Queues a request to be sent
Returns
The response from the api requestName | Type | Optional | Description |
---|---|---|---|
request | InternalRequest | No | All the information needed to make a request |
Runs a request from the api
Name | Type | Optional | Description |
---|---|---|---|
options | InternalRequest | No | Request options |
Sets the default agent to use for requests performed by this manager
Name | Type | Optional | Description |
---|---|---|---|
agent | Dispatcher | No | The agent to use |
Sets the authorization token that should be used for requests
Name | Type | Optional | Description |
---|---|---|---|
token | string | No | The authorization token to use |