Clients - websub : Caller

The caller remote functions to respond to client requests.

Remote Methods

respond

Sends the response to the caller.

ok

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

accepted

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

respond

(ResponseMessage message)

returns error

Sends the response to the caller.

Parameters

  • message ResponseMessage (default ())
  • 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 (default ())
  • 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 (default ())
  • The response or any payload of type http:ResponseMessage

  • Return Type

    (error)
  • Returns an error on failure