traefik / whoami

Tiny Go server that prints os information and HTTP request to output

Home Page:https://traefik.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Specify custom headers

Ullaakut opened this issue · comments

In order to test things like HTTP caching, it can be useful to have the whoami respond with specific headers.

Could you give a much more detailed explanation?

flags != Headers

My bad I meant headers indeed. Not sure how they would be passed though. I guess it could take one or more `-header "Header-Key: Header-Value" options, but not sure if that would work with the CLI library that the project uses.

How would you suggest we could pass one or more headers in the whoami's configuration?

What element to do you want to identity by using headers? (the instance, the request, ...)

I'm not sure what you mean exactly, but I'd like to have a whoami that can respond with a Cache-Control: no-cache header for example.