Skip to content

magickatt/log-request-headers

Repository files navigation

Log request headers

Will log the incoming HTTP request headers for debugging purposes.

2021-12-21 20:08.26 [debug ] {'Host': 'log-request-headers.default', 'User-Agent': 'curl/7.61.1', 'Accept': '*/*'}

https://hub.docker.com/repository/docker/magickatt/log-request-headers

Run

Can be run locally in a Virtualenv or in a Docker container (below)

virtualenv .virtualenv
source .virtualenv/bin/activate
pip install -r requirements.txt
python app.py

Dockerfile for building Docker image included.

docker build . --tag log-request-headers:latest
docker run log-request-headers:latest

Deploy

Resource manifest for k8s included.

kubectl apply -f deployment.yaml

About

Logs request headers for debugging purposes

Resources

Stars

Watchers

Forks

Packages

No packages published