new EndpointContext()
Parameters:
Name | Type | Description |
---|---|---|
options.party | module:Party. | The party handling the request |
options.endpoint | module:Service. | The endpoint being executed |
options.req | Express. | Express js request object |
options.res | Express. | Express js response object |
options.input | * | Raw input from client |
options.debug | Debug | Debug constructor (defaults to npm:Debug) |
options.sendFullErrors | boolean | Enables sending full stack traces to client (defaults to false) |
Members
(static) actor
(static) debug
(static) endpoint
(static) identity :dataparty_crypto.Identity
Effective root of trust
Type:
- dataparty_crypto.
Identity
(static) input :Object
Type:
- Object
(static) MiddlewareConfig
(static) output
(static) req
(static) res
(static) senderKey :dataparty_crypto.Identity
Key used to encrypt content. This may be an ephermal key or a long lived key.
Type:
- dataparty_crypto.
Identity
(static) session
(static) stats
Methods
(static) debug(msg, …args)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
msg | * | ||
args | any | <repeatable> |
(static) setSendFullErrors(value)
Parameters:
Name | Type | Description |
---|---|---|
value | * |