An open API service indexing awesome lists of open source software.

https://github.com/ctrlaltdev/srv42

🌐 Catch All HTTP Server
https://github.com/ctrlaltdev/srv42

Last synced: 9 months ago
JSON representation

🌐 Catch All HTTP Server

Awesome Lists containing this project

README

          

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

```sh
srv42
```

To use another port than 1337:
```sh
srv42 -p 5000
```

To response another status than 202 (ignored if a path is provided):
```sh
srv42 -s 204
```

To have the full details of the request:
```sh
srv42 -v
```

To serve static files:
```sh
srv42 www/static/
```