### ----------------------------------------------------
### -- Stomp
### -- Licenses: Artistic-2.0
### -- Authors: Jonathan Worthington
### -- File: lib/Stomp/Message.rakumod
### ----------------------------------------------------
class Stomp::Message {
    has $.command is required;
    has %.headers;
    has $.body = '';

    method Str() {
        qq:to/END/
            $!command
            %!headers.fmt("%s:%s")

            $!body\0
            END
    }
}


