struct NATS::Message

Defined in:

message.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(subject : String, body : Slice(UInt8), reply_to : Nil | String = nil, headers : Nil | Hash(String, String) = nil) #

[View source]

Instance Method Detail

def body : Bytes #

[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 headers : Headers #

[View source]
def reply_to : String | Nil #

[View source]
def subject : String #

[View source]