How to handle headers with -
in the name.
#208
Answered
by
sunli829
ChillFish8
asked this question in
Q&A
-
Currently, you can get a header by doing something along the lines of
but how can you get a header which has a |
Beta Was this translation helpful? Give feedback.
Answered by
sunli829
Feb 21, 2022
Replies: 1 comment 1 reply
-
You can rename parameter names. 😁 async fn a(&self, #[oai(name="foo-bar")] foo_bar:Query<i32>) {
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ChillFish8
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can rename parameter names. 😁