Method: HTTPX::Connection::HTTP1#initialize
- Defined in:
- lib/httpx/connection/http1.rb
#initialize(buffer, options) ⇒ HTTP1
Returns a new instance of HTTP1.
22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/httpx/connection/http1.rb', line 22 def initialize(buffer, ) = @max_concurrent_requests = .max_concurrent_requests || MAX_REQUESTS @max_requests = .max_requests @parser = Parser::HTTP1.new(self) @buffer = buffer @version = [1, 1] @pending = [] @requests = [] @handshake_completed = false end |