Method: SimpleStream::Response#initialize
- Defined in:
- lib/simple_stream/response.rb
#initialize(&block) ⇒ Response
Returns a new instance of Response.
9 10 11 12 13 |
# File 'lib/simple_stream/response.rb', line 9 def initialize(&block) @block = block @parser = Http::Parser.new(self) @tokenizer = BufferedTokenizer.new("\r\n") end |