Skip to content

Class: default

controllers/rest/request/RESTRequest.default

Table of contents

Constructors

Properties

Methods

Constructors

constructor

+ new default(controller: default, options: RESTRequestOptions): default

Parameters:

Name Type
controller default
options RESTRequestOptions

Returns: default

Defined in: controllers/rest/request/RESTRequest.ts:22

Properties

attempts

attempts: number

The amount of times this request has been executed

Defined in: controllers/rest/request/RESTRequest.ts:22


controller

controller: default

Defined in: controllers/rest/request/RESTRequest.ts:13


requestOptions

requestOptions: RESTRequestOptions

The options that will be used for sending the request

Defined in: controllers/rest/request/RESTRequest.ts:17

Methods

send

send(options?: RESTRequestOptions): Promise<RESTResponseDataType>

Parameters:

Name Type
options? RESTRequestOptions

Returns: Promise<RESTResponseDataType>

Defined in: controllers/rest/request/RESTRequest.ts:37


setOptions

setOptions(options: RESTRequestOptions): RESTRequestOptions

Parameters:

Name Type
options RESTRequestOptions

Returns: RESTRequestOptions

Defined in: controllers/rest/request/RESTRequest.ts:30