forked from OpenFeign/feign
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OpenFeignGH-1464] Add appendHeader that supports Literals
This change adds a new `appendHeader` internal method to `RequestTemplate` allowing for already resolved headers to be added to the resolved `RequestTemplate` preventing duplicate expression processing by using another new method `HeaderTemplate.literal` and `HeaderTemplate.appendLiteral` respectively. I chose this route as it isolates the change to be applied only after the original `HeaderTemplate` has been resolved. While it does expose new public `HeaderTemplate` APIs, I feel that is an OK trade off, allowing a new escape-hatch for situations where URI template processing is not acceptable for Header values.
- Loading branch information
Showing
3 changed files
with
104 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters