Skip to content

ctrlaltdev/srv42

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Catch All Test HTTP Server

You can listen to any and all incoming requests and print them to stdout, or you can serve local static files if you provide a path.

Usage

srv42

To use another port than 1337:

srv42 -p 5000

To response another status than 202 (ignored if a path is provided):

srv42 -s 204

To have the full details of the request:

srv42 -v

To serve static files:

srv42 www/static/