class Stomp::Frame

Overview

Represent a frame

Defined in:

frames.cr

Constant Summary

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

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.decode(io : IO) : Frame #

[View source]
def self.decode(s : String) : Frame #

[View source]
def self.new(command : Stomp::Commands, headers : Hash(String, String) = {} of String => String, body : String = "") #

[View source]

Class Method Detail

def self.escape_header(src) #

TODO


[View source]
def self.is_beat(src) #

[View source]

Instance Method Detail

def ==(other) #
Description copied from class Reference

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


[View source]
def body : String #

[View source]
def body=(body : String) #

[View source]
def command : Commands #

[View source]
def command=(command : Commands) #

[View source]
def encode(output : IO, with_return = false, with_content_length = true) : IO #

[View source]
def encode(with_return = false, with_content_length = true) : String #

[View source]
def headers : Hash(String, String) #

[View source]
def headers=(headers : Hash(String, String)) #

[View source]