Skip to content

Simple HTTP server listener with JSON formatting for debug purposes.

Notifications You must be signed in to change notification settings

cheshir/simple-http-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple HTTP server listener with JSON formatting for debug purposes.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages