Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

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

Description

@jreusch-barco

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions