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

    await send({
        'type': 'http.response.start',
        'status': 200,
        'headers': [
            (b'content-length', b'0'),
            (b'query-string', scope['query_string']),
        ]
    })