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

Make Receiver's HttpClient extensible #2043

Merged
merged 5 commits into from Feb 28, 2023

Conversation

catcherwong
Copy link
Contributor

@catcherwong catcherwong commented Feb 21, 2023

For #1926 , make Receiver's HttpClient instance from ReceiverOptions.

Fixes #1926

@catcherwong
Copy link
Contributor Author

@microsoft-github-policy-service agree

Copy link
Member

@MihaZupan MihaZupan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for looking to contribute. I would simplify the number of properties to configure, but otherwise LGTM.

src/Kubernetes.Controller/Protocol/ReceiverOptions.cs Outdated Show resolved Hide resolved
@microsoft-github-policy-service microsoft-github-policy-service bot merged commit 754ceec into microsoft:main Feb 28, 2023
@catcherwong catcherwong deleted the iss-1926 branch February 28, 2023 14:21
{
UseProxy = false,
AllowAutoRedirect = false,
AutomaticDecompression = DecompressionMethods.None,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MihaZupan These are the settings we use elsewhere for proxying requests, but that's not applicable here is it, this is just used to retrieve config data? The defaults seem more applicable, especially for decompression.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of these shouldn't matter, but I agree decompression may be useful to keep on by default.
#2054

@MihaZupan MihaZupan added this to the YARP 2.x milestone May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The Receiver's HttpClient should be extensible
4 participants