trek (owner)

Revisions

gist: 111022 Download_button fork
public
Public Clone URL: git://gist.github.com/111022.git
Embed All Files: show embed
HTTP.rb #
1
2
3
4
5
require 'net/http'
connection = Net::HTTP.new('localhost', '3000')
# connection.send_request(verb, path, body, headers)
connection.send_request('GET', '/', nil)
connection.send_request('POST', '/', "some data", {})