/simple-http-server

Simple HTTP server listener with JSON formatting for debug purposes.

Primary LanguageGo

Simple HTTP server

About

Simple HTTP server listener written on go with JSON formatting.

It listens on specific port for HTTP requests and prints request's data into the stdout.

Example

Request:

echo '{"key": {"key2": {"key3": "value"}}, "key4": "value2"}' | http POST :8080/test 

Result:

Installation

curl -sf https://gobinaries.com/cheshir/simple-http-server | sh

Or if you want to build it from the source:

go install github.com/cheshir/simple-http-server

Configuration

You can specify HTTP port with -p flag:

simple-http-server -p 9999