-
Notifications
You must be signed in to change notification settings - Fork 671
Open
Open
Copy link
Labels
help wantedWe need contributions on thisWe need contributions on thistype/enhancementA general enhancementA general enhancement
Milestone
Description
Today we make it super easy to create an HttpClient
with headers that are set, or even conditionally set, for the lifetime of the HttpClient
- which is super cool!
However, there are cases where APIs use query parameters to achieve clever things. For example, (and I acknowledge this is weak) the Consul API allows (and now discourages) the use of an API security token to be passed to Consul via URI Query Parameter. Today, in order to support this we must use a delegate pattern and override the uri
methods of an HttpClient
class to inject the token.
If we had helper builder functions on the client, similar to the ones we have for headers, the delegate would be unnecessary.
Similarly a URI Fragment builder could also be added.
chibenwa, kubamarchwicki, ampersand8, songweian and larry-cable
Metadata
Metadata
Assignees
Labels
help wantedWe need contributions on thisWe need contributions on thistype/enhancementA general enhancementA general enhancement