/gohead

Simple golang webapp serving http.Header

Primary LanguageGo

Gohead

Simple golang webapp serving http.Header

Getting Started

❯ curl 127.0.0.1:8080
Served By: gohead-f945bd754-v2rm6
Namespace: default

Host: 127.0.0.1:8080
Method: GET
URL: /
Proto: HTTP/1.1
ContentLength: 0
TransferEncoding: []
Close: false
Trailer: map[]
User Agent: curl/7.86.0
Remote Address: 127.0.0.1:52184

Headers:
Accept: */*
User-Agent: curl/7.86.0

Build & Run

go bin

go build -o bin/gohead
./bin/gohead

Dockerfile

docker build -t gohead .
docker run -it -p 8080:8080 gohead

Kubernetes

kubectl apply -f manifests/
kubectl port-forward services/gohead 8080