Skip to content

Commit

Permalink
Add more documentation to @RestHeader
Browse files Browse the repository at this point in the history
This is needed because otherwise users
can get confused about what the actual
HTTP header being used

Closes: quarkusio#33861
(cherry picked from commit b7df405)
  • Loading branch information
geoand authored and gsmet committed Jun 14, 2023
1 parent 2d7ec64 commit 51ca88f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@

/**
* Equivalent of HeaderParam but with optional name.
* <p>
* When the name is not specified, then the parameter name is converted to kebab case
* while the first letter of every part of the kebab is made uppercase.
* <p>
* For example {@code @RestHeader String iAmTheParam} results in the value of the HTTP header {@code I-Am-The-Param} being used.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.FIELD, ElementType.PARAMETER })
Expand Down

0 comments on commit 51ca88f

Please sign in to comment.