Method: HTTP::Request#stream

Defined in:
lib/http/request.rb

#stream(socket) ⇒ Object

Stream the request to a socket



137
138
139
140
# File 'lib/http/request.rb', line 137

def stream(socket)
  include_proxy_headers if using_proxy? && !@uri.https?
  Request::Writer.new(socket, body, headers, headline).stream
end