xref: /unit/test/python/legacy/asgi.py (revision 1848:4bd548074e2c)
1def application(scope):
2    assert scope['type'] == 'http'
3
4    return app_http
5
6
7async def app_http(receive, send):
8    await send(
9        {
10            'type': 'http.response.start',
11            'status': 200,
12            'headers': [(b'content-length', b'0'),],
13        }
14    )
15