Skip to content

liz3/dbg-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dbg-server

This is a very simple cli tool which exposes a plain http server for debugging of http clients. It can be useful when creating clients which send http data and theres a need for a simple server which just sends the data to console for debugging/human verification purposes.

installation

npm i -g dbg-server

Arguments

  • -p/--port port - this sets the port the server is listening on.
  • -x/--cors - set cors headers, for use in browsers with other origin.
  • -c/--code code - needs to be a number, defines the http response code which will be used
  • -b/--body body - this defines the body which will be send back to the client, can either be a string or a json structure.

Running

dbg-server [...args]

LICENSE

this is free software licensed under GPL-2.0

About

A simple no hassle cli http debug server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published