method
write_header
write_header(sock, ver, path)
private
Hide source
# File lib/net/http.rb, line 1767 def write_header(sock, ver, path) buf = "#{@method} #{path} HTTP/#{ver}\r\n" each_capitalized do |k,v| buf << "#{k}: #{v}\r\n" end buf << "\r\n" sock.write buf end