lib/sse_client/streaming_http.rb
# Build an HTTP request line and headers.
Build an HTTP request line and headers.
Build an HTTP request line and headers .
def build_request(uri, headers)
      ret = "GET #{uri.request_uri} HTTP/1.1\r\n"
      ret << "Host: #{uri.host}\r\n"
      headers.each { |k, v|
        ret << "#{k}: #{v}\r\n"
      }
      ret + "\r\n"
    end
def build_request ( uri , headers ) ret = "GET #{uri.request_uri} HTTP/1.1\r\n" ret << "Host: #{uri.host}\r\n" headers . each { | k , v | ret << "#{k}: #{v}\r\n" } ret + "\r\n" end
Build an HTTP request line and headers.
Build an HTTP request line and headers .
uri
<not_specific>
headers
<not_specific>