class

Stomp::Frame

Inherits Reference < Object

Represent a frame

Constants

BEAT = "\n"
NOT_ESCAPED_FRAMES = [Commands::CONNECT, Commands::CONNECTED]

Constructors

decode(io : IO) : Frame
Source
decode(s : String) : Frame
Source
new(command : Stomp::Commands, headers : Hash(String, String) = {} of String => String, body : String = "")
Source

Class methods

escape_header(src)

TODO

Source
is_beat(src)
Source

Instance methods

==(other)

Returns false (other can only be a Value here).

Source
body
Source
body=(body : String)
Source
command
Source
command=(command : Commands)
Source
encode(output : IO, with_return = false, with_content_length = true) : IO
Source
encode(with_return = false, with_content_length = true) : String
Source
headers
Source
headers=(headers : Hash(String, String))
Source