class
Crabbit::RawMessage
- Crabbit::RawMessage
- Reference
- Object
Overview
Already encoded AMQP 1.0 message bytes.
Publishing a RawMessage bypasses AMQP encoding. The bytes must contain a
valid complete AMQP message, not merely an application payload.
Defined in:
crabbit/message.crConstructors
-
.new(bytes : Bytes, copy : Bool = true)
Creates a raw message and copies bytes by default.
Instance Method Summary
-
#bytes : Bytes
Returns the encoded AMQP message bytes.
Constructor Detail
def self.new(bytes : Bytes, copy : Bool = true)
#
Creates a raw message and copies bytes by default.
With copy set to false, the caller owns the buffer lifetime and must
not mutate it until publishing has completed.