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
- Host: GitHub
- URL: https://github.com/ctrlaltdev/srv42
- Owner: ctrlaltdev
- Created: 2021-03-12T18:36:22.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-06T14:19:01.000Z (over 4 years ago)
- Last Synced: 2025-02-14T19:39:24.310Z (11 months ago)
- Language: Go
- Homepage: https://ctrlalt.dev/srv42
- Size: 14.6 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/
```