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

Is there a getHeaders() method? #348

Closed
jseparovic opened this issue Nov 11, 2022 · 2 comments
Closed

Is there a getHeaders() method? #348

jseparovic opened this issue Nov 11, 2022 · 2 comments

Comments

@jseparovic
Copy link

jseparovic commented Nov 11, 2022

I can see that I'm able to getHeader(String), but I want to collect all x-* headers without knowing them in advance.

I'm able to use req.unwrap(Request.class) to get the text request headers and parse.

Just thought it would be nicer to have a getHeaders on the RestxRequest class.

@xhanin
Copy link
Contributor

xhanin commented Nov 11, 2022

indeed, that sounds like a good addition to the API.
there is not much activity on restx recently, but feel free to submit a PR for that

fhebuterne added a commit that referenced this issue Nov 21, 2023
@fhebuterne
Copy link
Member

Hi, this is available in restx version 1.1.0

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

3 participants