https://github.com/ansman/servers
A simple HTTP echo server in common languages
https://github.com/ansman/servers
Last synced: about 1 year ago
JSON representation
A simple HTTP echo server in common languages
- Host: GitHub
- URL: https://github.com/ansman/servers
- Owner: ansman
- License: mit
- Created: 2012-05-05T15:02:42.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2025-04-06T14:37:43.000Z (about 1 year ago)
- Last Synced: 2025-04-06T15:36:32.673Z (about 1 year ago)
- Language: Java
- Size: 8.79 KB
- Stars: 3
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Servers
=======
Why
---
Often when you write a server application things do not go as expected.
I've found that it's a big help to have a stupid echo server which just prints
the request. It doesn't need to respond with anything specific, just output headers
and the request.
In this repository you'll find a simple echo server implemented in common languages.
How
---
Some servers are implemented using a web server (node.js for example) while some use
a simple server socket (ruby for example).
Some output just the `HTTP/1.0 200 OK` while some add some headers, it depends on the
language/framework.
The goal is to have no dependencies beside the bare minimum and that all servers can be started using `./server. [port=8080] [host=127.0.0.1]` with the host and port being optional.
Of course this isn't possible in all languages (compiled languages).
Contributing
------------
Add your favorite language and make a pull request!
License
-------
This is project is licensed under the [MIT License](http://en.wikipedia.org/wiki/MIT_License).