struct NATS::Message

Defined in:

message.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(subject : String, data data_string : String, reply_to : Nil | String = nil, headers : HTTP::Headers | Nil = nil) #

[View source]

Instance Method Detail

def body #

[View source]
def 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)


[View source]
def data #

[View source]
def data_string : String #

[View source]
def headers : Headers #

[View source]
def reply_to : String | Nil #

[View source]
def subject : String #

[View source]