Service. EndpointContext

new EndpointContext()

Parameters:
NameTypeDescription
options.partymodule:Party.IParty

The party handling the request

options.endpointmodule:Service.IEndpoint

The endpoint being executed

options.reqExpress.Request

Express js request object

options.resExpress.Response

Express js response object

options.input*

Raw input from client

options.debugDebug

Debug constructor (defaults to npm:Debug)

options.sendFullErrorsboolean

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:
NameTypeAttributesDescription
msg*
argsany<repeatable>

(static) setSendFullErrors(value)

Parameters:
NameTypeDescription
value*