xref: /unit/test/python/204_no_content/asgi.py (revision 2073:bc6ad31ce286)
1async def application(scope, receive, send):
2    assert scope['type'] == 'http'
3
4    await send(
5        {
6            'type': 'http.response.start',
7            'status': 204,
8            'headers': [],
9        }
10    )
11