| 198 | def test_testclient_asgi2(test_client_factory: TestClientFactory) -> None: |
| 199 | def app(scope: Scope) -> ASGIInstance: |
| 200 | async def inner(receive: Receive, send: Send) -> None: |
| 201 | await send( |
| 202 | { |
| 203 | class="st">"type": class="st">"http.response.start", |
| 204 | class="st">"status": 200, |
| 205 | class="st">"headers": [[bclass="st">"content-type", bclass="st">"text/plain"]], |
| 206 | } |
| 207 | ) |
| 208 | await send({class="st">"type": class="st">"http.response.body", class="st">"body": bclass="st">"Hello, world!"}) |
| 209 | |
| 210 | return inner |
| 211 | |