struct NATS::Message
- NATS::Message
- Struct
- Value
- Object
Defined in:
message.crConstructors
Instance Method Summary
- #body : Bytes
-
#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)
- #headers : Headers
- #reply_to : String | Nil
- #subject : String
Constructor Detail
def self.new(subject : String, body : Slice(UInt8), reply_to : Nil | String = nil, headers : Nil | Hash(String, String) = nil)
#
Instance Method Detail
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)