https://github.com/corneliusweig/log-request-body
Just log HTTP requests to stdout
https://github.com/corneliusweig/log-request-body
Last synced: about 2 months ago
JSON representation
Just log HTTP requests to stdout
- Host: GitHub
- URL: https://github.com/corneliusweig/log-request-body
- Owner: corneliusweig
- License: apache-2.0
- Created: 2019-11-11T20:57:44.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-11T21:55:08.000Z (over 5 years ago)
- Last Synced: 2025-02-02T10:33:51.863Z (3 months ago)
- Language: Go
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
log-request-body
==Answers all HTTP requests with OK (200) and logs the request body to stdout.
When the `PORT` environment variable is specified, the application listens on this port. Otherwise, it uses port 80.
Usage
--```sh
docker build . -t corneliusweig/log-request-body
docker run --rm -ti -p 8080:80 corneliusweig/log-request-body# test with
curl -XPOST -d'Hello World!' localhost:8080
```Deploy to CloudRun
--[](https://deploy.cloud.run)