8000 Updated documentation for use of delegating handler with HttpClientFactory by ilya-git · Pull Request #1047 · reactiveui/refit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Updated documentation for use of delegating handler with HttpClientFactory #1047

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

Merged
merged 3 commits into from
Feb 4, 2021

Conversation

ilya-git
Copy link
Contributor
@ilya-git ilya-git commented Feb 1, 2021

What kind of change does this PR introduce?
This is a Readme update

What is the current behavior?

It seems that delegating handlers actually behave differently with HttpClientFactory. I did get an exception if I followed the existing documentation. I think AddHttpMessageHandler does some magic behind the scenes like assigning InnerHandler via the public property itself to preserve the chain, and then new HttpClientHandler as the Inner Handler messes with it and we get an exception.

It's probably still a correct thing to do without HttpClientFactory and perhaps it is also dependent on dotnet version? I got an exception in 3.1 at least.

The documentation here suggests the same (no inner handler).

What is the new behavior?

Inner handler is removed from the parameters

What might this PR break?

Only documentation file is changed

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Other information:

@clairernovotny clairernovotny reopened this Feb 4, 2021
@clairernovotny clairernovotny merged commit 847e514 into reactiveui:main Feb 4, 2021
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions 6236 github-actions bot locked as resolved and limited conversation to collaborators Apr 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0