Method: HTTPX::Parser::HTTP1#initialize
- Defined in:
- lib/httpx/parser/http1.rb
#initialize(observer, header_separator: ":") ⇒ HTTP1
Returns a new instance of HTTP1.
12 13 14 15 16 17 18 |
# File 'lib/httpx/parser/http1.rb', line 12 def initialize(observer, header_separator: ":") @observer = observer @state = :idle @header_separator = header_separator @buffer = "".b @headers = {} end |