No description
  • Go 90.7%
  • Dockerfile 9.3%
Find a file
Marcel Ryser 7398883cf2 fix: use comma-separated repos instead of full paths in tags
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 15:43:01 +01:00
.woodpecker fix: use comma-separated repos instead of full paths in tags 2026-01-22 15:43:01 +01:00
.dockerignore initial commit 2024-01-17 17:07:18 +01:00
.gitignore fix for amd64_v1 renaming and only build needed archs! 2024-04-08 10:42:59 +02:00
.goreleaser.yaml fix for amd64_v1 renaming and only build needed archs! 2024-04-08 10:42:59 +02:00
Dockerfile feature/actions-workflow (#11) 2025-01-06 19:04:37 +01:00
go.mod go 1.20 2024-01-17 17:57:14 +01:00
main.go new defaults which correspond more with the sample in the README 2024-01-17 18:25:42 +01:00
README.md initial commit 2024-01-17 17:07:18 +01:00
renovate.json enable renovate 2024-01-17 17:08:16 +01:00

HTTP logger proxy

This is an HTTP proxy which prints raw full http requests and responses to stdout including http body.

For example:

2024/01/11 03:50:44 ---REQUEST 3---

POST /api/contacts HTTP/1.1
Host: api.example.io
User-Agent: PostmanRuntime/7.28.0
Content-Length: 63
Accept: */*
Accept-Encoding: gzip, deflate, br
Cache-Control: no-cache
Content-Type: application/json
X-Forwarded-For: 172.17.0.1

{
    "firstName": "Hans",
    "lastName": "Zimmer"
}

2024/01/11 03:50:44 ---RESPONSE 3---

HTTP/1.1 201 Created
Content-Length: 68
Access-Control-Allow-Origin: *
Content-Type: application/json; charset=UTF-8
Date: Wed, 05 May 2021 03:50:45 GMT
Server: Google Frontend
X-Cloud-Trace-Context: 83ac5937ae7ba8f3ef96ee941227b1b0

{
  "salesforceId": "a0C3L0000008ZSNUA2",
  "action": "updated"
}

Build image

docker build -t metawave/http-logger-proxy .

Start

docker run --rm -it -p 8888:8888 -e PORT=8888 -e TARGET=http://google.com metawave/http-logger-proxy