Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Http/Refit] Add support for custom EndpointOptions to customize endpoint configuration #1590

Closed
nickrandolph opened this issue Jun 22, 2023 · 0 comments · Fixed by #1591
Closed
Labels
kind/enhancement New feature or request. triage/untriaged Indicates an issue requires triaging or verification.

Comments

@nickrandolph
Copy link
Contributor

What would you like to be added:

Ability to register a sub-class of EndpointOptions to allow for additional customization of the httpclient

Why is this needed:

If you want to include an api key in appsettings you currently need to create a separate section and then apply that configuration to the httpclient. A custom EndpointOptions could simply include an additional property that would be available at the point where the httpclient is being created

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request. triage/untriaged Indicates an issue requires triaging or verification.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant