https://github.com/icewreck/requestbin
Like httpbin, but you can log requests to view them later. Built in Go.
https://github.com/icewreck/requestbin
go golang httpbin
Last synced: 26 days ago
JSON representation
Like httpbin, but you can log requests to view them later. Built in Go.
- Host: GitHub
- URL: https://github.com/icewreck/requestbin
- Owner: IceWreck
- Created: 2020-06-16T18:46:42.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-16T18:58:47.000Z (almost 6 years ago)
- Last Synced: 2025-12-30T22:37:30.631Z (6 months ago)
- Topics: go, golang, httpbin
- Language: Go
- Homepage:
- Size: 48.8 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RequestBin
RequestBin is like httpbin, but it logs requests so that you can see them later. Might be shoddy work, and probably noone else will use this, but I built this to replace my PHP based soln for the same and I wanted to play with Go.
* Single endpoint for accepting all kinds of requests.
* Sends back everything it receives as response. (except multipart files for now)
* Saves request logs so that they can be seen later.
* Basic http authentication to view logs.
* Usecase: Test API clients, common endpoint to send random stuff.
* Lean (14 MB binary, uses < 2 MB RAM>)
## Instructions
* Compile a binary. `go build`
* Upload to your server.
* Create a `.env` file similar to the provided one
* Make sure the binary has write access to the directory where its placed.
* Create a systemd service (or systemd user service) to autostart.
* You don't need httpd/nginx to serve it. RequestBin has Go's highly performant http server built in. It just listens at your specified port. You may use them a reverse proxy.
