Method: Async::HTTP::Protocol::HTTP1.client

Defined in:
lib/async/http/protocol/http1.rb

.client(peer) ⇒ Object



40
41
42
43
44
# File 'lib/async/http/protocol/http1.rb', line 40

def self.client(peer)
	stream = IO::Stream.new(peer, sync: false)
	
	return HTTP1::Client.new(stream, VERSION)
end