Constructor
new HTTP_ADAPTER(options)
Constructor for HTTP_Adapter
Parameters:
| Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | Options for the HTTP adapter Properties
|
- Source:
Methods
error(req, res, optionsopt) → {Object}
Handles logging errors
Parameters:
| Name | Type | Attributes | Default | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
req |
Object | Express request object |
||||||||
res |
Object | Express response object |
||||||||
options |
Object |
<optional> |
{} | Configurable options for error logging Properties
|
- Source:
Returns:
this
- Type
- Object
exception(req, res, optionsopt) → {Object}
Handles sending an error response
Parameters:
| Name | Type | Attributes | Default | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
req |
Object | Express request object |
||||||||
res |
Object | Express response object |
||||||||
options |
Object |
<optional> |
{} | Configurable options for error logging Properties
|
- Source:
Returns:
this
- Type
- Object
implement(options) → {Object}
Convenience method for accessing .implement method on API adapter. Also handles implementing controllers and routers for multiple models
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
options |
Object | Configurable options for implementing controllers and routers. See API adapter .implement method for more details Properties
|
- Source:
Returns:
this
- Type
- Object
redirect(req, res, optionsopt) → {Object}
Handles redirects
Parameters:
| Name | Type | Attributes | Default | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
req |
Object | Express request object |
||||||||
res |
Object | Express response object |
||||||||
options |
Object |
<optional> |
{} | Configurable options for redirect Properties
|
- Source:
Returns:
this
- Type
- Object
respond(req, res, optionsopt) → {Object}
Handles sending the response to a request by rendering data according to this.responder configuration
Parameters:
| Name | Type | Attributes | Default | Description | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
req |
Object | Express request object |
|||||||||||||||||||||||
res |
Object | Express response object |
|||||||||||||||||||||||
options |
Object |
<optional> |
{} | Configurable options for response Properties
|
- Source:
Returns:
this
- Type
- Object
warn(req, res, optionsopt) → {Object}
Handles logging warns
Parameters:
| Name | Type | Attributes | Default | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
req |
Object | Express request object |
||||||||
res |
Object | Express response object |
||||||||
options |
Object |
<optional> |
{} | Configurable options for warning logging Properties
|
- Source:
Returns:
this
- Type
- Object