We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We should allow clients to trivially plug into WSGI and ASGI apps. This will allow:
httpcore
We should support the following:
def hello_world(environ, start_response): ... client = Client(app=hello_world)
And...
async def hello_world(scope, receive, send): ... client = Client(app=hello_world)
This is easy enough for us to do, since we've already got a dispatch=... interface, so we'll want something like this:
dispatch=...
if app is not None: if is_coroutine(app): dispatch = ASGIDispatcher(app) else: dispatch = WSGIDispatcher(app)
We'll then need ASGIDispatcher and WSGIDispatcher implementations, which implement Dispatcher.send().
ASGIDispatcher
WSGIDispatcher
Dispatcher.send()
The text was updated successfully, but these errors were encountered:
Related #79 - required for the WSGI case.
Sorry, something went wrong.
Done.
No branches or pull requests
We should allow clients to trivially plug into WSGI and ASGI apps.
This will allow:
httpcore
as a test client.We should support the following:
And...
This is easy enough for us to do, since we've already got a
dispatch=...
interface, so we'll want something like this:We'll then need
ASGIDispatcher
andWSGIDispatcher
implementations, which implementDispatcher.send()
.The text was updated successfully, but these errors were encountered: