summaryrefslogtreecommitdiffhomepage
path: root/test/python/204_no_content/asgi.py
blob: 5dbb67d0a45d3fde34eea685c3d2f0b2c78e2e69 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
async def application(scope, receive, send):
    assert scope['type'] == 'http'

    await send(
        {
            'type': 'http.response.start',
            'status': 204,
            'headers': [],
        }
    )