struct

NATS::Message

Inherits Struct / Value / Object

Constructors

new(subject : String, data data_string : String, reply_to : Nil | String = nil, headers : HTTP::Headers | Nil = nil)
Source

Instance methods

body
Source
body_io

DEPRECATED Instantiating a new IO::Memory for each message made them heavier than intended, so we're now recommending using String.new(msg.body)

Source
data
Source
data_string
Source
headers
Source
reply_to
Source
subject
Source

Nested types