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

Validator for passed requestID via X-Request-Id header. #39

Open
jreusch-barco opened this issue Dec 15, 2022 · 0 comments
Open

Validator for passed requestID via X-Request-Id header. #39

jreusch-barco opened this issue Dec 15, 2022 · 0 comments

Comments

@jreusch-barco
Copy link

Hey hey
thanks alot for this library!

i'd be interested if you'd be willing to accept a PR which does some kind of validation for values which are passed as part of the request header.
in my view this data should be considered unsafe, and applying some validation on it mostly beneficial.
if so, would you prefer a version where a regexp can be passed, or rather a generic validator function which leaves it open to the developer to return true/false if it's a valid id (and thus also leaving ppl open the possibility to log some lines in that case?)
thanks!
cheers
Jan

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

1 participant