FromRequest guard for arbritrary headers #2405
infogulch
started this conversation in
Show & Tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wrote a simple request guard that parses headers from a request and provides them as params to any handler. It relies on
#![feature(adt_const_params)]
to compile header selection statically.Example usage:
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions