Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify custom headers #31

Open
Ullaakut opened this issue Jun 8, 2020 · 4 comments
Open

Specify custom headers #31

Ullaakut opened this issue Jun 8, 2020 · 4 comments

Comments

@Ullaakut
Copy link

Ullaakut commented Jun 8, 2020

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

@ldez
Copy link
Contributor

ldez commented Jun 8, 2020

Could you give a much more detailed explanation?

flags != Headers

@Ullaakut
Copy link
Author

Ullaakut commented Jun 8, 2020

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?

@ldez
Copy link
Contributor

ldez commented Jun 9, 2020

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

@Ullaakut
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants