Clients - websub : Caller

The caller remote functions to respond to client requests.

respond

(ResponseMessage message)

returns error?

Sends the response to the caller.

Parameters

  • message ResponseMessage - ()
  • The response or any payload of type string, xml, json, byte[], io:ReadableByteChannel or mime:Entity[]

  • Return Type

    (error?)
  • Returns an error on failure

ok

(ResponseMessage message)

returns error?

Sends the response to the caller with the status 200 OK.

Parameters

  • message ResponseMessage - ()
  • The response or any payload of type string, xml, json, byte[], io:ReadableByteChannel or mime:Entity[]

  • Return Type

    (error?)
  • Returns an error on failure

accepted

(ResponseMessage message)

returns error?

Sends the response to the caller with the status 202 Accepted.

Parameters

  • message ResponseMessage - ()
  • The response or any payload of type http:ResponseMessage

  • Return Type

    (error?)
  • Returns an error on failure