Fix support for generator-based WSGI apps (#887)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
* Handle generator WSGI app * Lint code * Add type annotations * Add more tests * Refactor test to use application_factory * Remove content length as it's misleading * Add test for WSGI generator * Add test for empty generator * Remove previous tests * Move docstring to a comment * Fix whitespace * Fix name of function Co-Authored-By: Florimond Manca <florimond.manca@gmail.com> * Update tests/test_wsgi.py Co-Authored-By: Florimond Manca <florimond.manca@gmail.com> * Update tests/test_wsgi.py Co-Authored-By: Florimond Manca <florimond.manca@gmail.com> * Update httpx/_dispatch/wsgi.py Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Trailers
- Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
Diff stats
2 files+40 added−12 removed
- tests:+28 added−12 removed
- other:+12 added−0 removed