Skip to content
Simple HTTP server, with basic functionality.
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
test
README
httpd.rb

README

Basic HTTP server.

Supports:
	* GET method

How to config:
	* clone the repo
	* install ruby 1.9.x
	* From a CLI terminal, give the following command:
		$ ruby httpd.rb
	* Then from another terminal / tab, give
		$ telnet localhost 6000
	  ** 6000 is the port the server is listening

How to use:
	* Query examples:
		GET README
		GET /test/FAQ
		GET test
	* To exit, write two empty lines (press 'Enter' two times)

TODO:
	* add support for other methods
Something went wrong with that request. Please try again.