Skip to content
Myr

Add backend param to ASGIDispatcher (#270)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Florimond Manca · committed by Seth Michael Larson · parent 20cb8af · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:httpx/dispatch/asgi.py+2 added-2 removed
46 unmodified lines
47 app: typing.Callable,48 raise_app_exceptions: bool = True,49 root_path: str = "",50 client: typing.Tuple[str, int] = ("127.0.0.1", 123),51 backend: ConcurrencyBackend = None,52 ) -> None:53 self.app = app54 self.raise_app_exceptions = raise_app_exceptions55 self.root_path = root_path56 self.client = client56 # This will need to be turned into a parameter on this class at some point.57 self.backend: ConcurrencyBackend = AsyncioBackend()57 self.backend = AsyncioBackend() if backend is None else backend5859 async def send(60 self,61 request: AsyncRequest,
133 unmodified lines