struct

Hop::Reply

Inherits Struct < Value < Object

The callable handed to an on handler: reply.call(status, body). Sealing a response is a new addressed message back to the request's caller (it may arrive later, even after a restart).

Constructors

new(endpoint : Endpoint, to : Bytes, request_id : Bytes)
Source

Instance methods

call(status : Int, body : String | Bytes = "") : Nil
Source