Class: Request

services.Request(body)

A class not meant to be directly instantiated by the users of the API.

However, when implementing a new service type i.e. when implementing service type's service function, Request object's properties are used a) to get corresponding client's request (the body property) and b) to get resolve and reject functions of the Promise of the Request object (resolve and reject properties). See the registerType function for more details, including the examples.

Constructor

new Request(body)

Creates a Request object as a wrapper of a client's request object.
Parameters:
Name Type Description
body Object client's request object
Source:

Members

body :Object

The client's request itself (request body).
Type:
  • Object
Source:

promise :Promise

The client request's Promise.
Type:
  • Promise
Source:

reject :function

The client request Promise's reject function.
Type:
  • function
Source:

resolve :function

The client request Promise's resolve function.
Type:
  • function
Source: