summaryrefslogtreecommitdiffhomepage
path: root/test/python/empty/asgi.py
blob: 58b7c1f25253887c020ff6e0f088faa4716f2a19 (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': 200,
        'headers': [
            (b'content-length', b'0'),
        ]
    })