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

reorganize BaseHTTPMiddleware tasks so that app is in the same task as __call__ #1

Draft
wants to merge 6 commits into
base: base-http-middleware-no-cancellation
Choose a base branch
from

Conversation

jhominal
Copy link
Owner

@jhominal jhominal commented Jul 3, 2022

This PR is done as support for discussion encode#1729

jhominal and others added 5 commits July 2, 2022 21:42
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
…s __call__

This has the following effects:

 * contextvars set in dispatch are not visible in endpoints
 * contextvars set in endpoints are visible upstream
@jhominal jhominal force-pushed the base-http-middleware-fix-contextvars branch from d2aa86f to b98d6a1 Compare July 7, 2022 19:32
That allows context var modifications from dispatch to be visible upstream and
downstream.
jhominal pushed a commit that referenced this pull request Aug 16, 2022
encode#1747)

* Explain 'TestClient(app) as client' vs 'client = TestClient(app)' (encode#1733)

* Nit (encode#1733)

* Update docs/testclient.md (encode#1733)

Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>

* Update docs/testclient.md

Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>

* Update docs/testclient.md

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>

* Update docs/testclient.md

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>

Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
@jhominal jhominal force-pushed the base-http-middleware-no-cancellation branch from 1062843 to 4c50738 Compare August 16, 2022 11:08
@jhominal jhominal force-pushed the base-http-middleware-no-cancellation branch from 4c50738 to 274bdeb Compare September 3, 2022 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant