https://github.com/andreip/http-server
Simple HTTP server, with basic functionality.
https://github.com/andreip/http-server
Last synced: 9 months ago
JSON representation
Simple HTTP server, with basic functionality.
- Host: GitHub
- URL: https://github.com/andreip/http-server
- Owner: andreip
- Created: 2012-03-01T18:12:23.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-03-04T10:48:27.000Z (over 14 years ago)
- Last Synced: 2025-09-06T10:39:08.894Z (9 months ago)
- Language: Ruby
- Homepage:
- Size: 93.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
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