Class: Klomp::Frames::ServerFrame
Instance Method Summary collapse
- #error? ⇒ Boolean
-
#initialize(data) ⇒ ServerFrame
constructor
A new instance of ServerFrame.
Methods inherited from Frame
#[], #[]=, #body, #body=, #dump_headers, #headers, #name, #new_headers, #stringify_headers, #to_s
Constructor Details
#initialize(data) ⇒ ServerFrame
Returns a new instance of ServerFrame.
38 39 40 |
# File 'lib/klomp/frames.rb', line 38 def initialize(data) @headers, @body = parse(data) end |
Instance Method Details
#error? ⇒ Boolean
42 43 44 |
# File 'lib/klomp/frames.rb', line 42 def error? @error end |