litbig / servers

A simple HTTP echo server in common languages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.<ext> [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.

About

A simple HTTP echo server in common languages

License:MIT License


Languages

Language:Java 28.9%Language:Python 18.5%Language:JavaScript 15.6%Language:CoffeeScript 13.1%Language:Go 12.9%Language:Ruby 11.1%