summaryrefslogblamecommitdiffhomepage
path: root/test/python/legacy/asgi.py
blob: 8be8932e758c2fbb2105876d0b47e2788c37ab88 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11




                                  
 
                                  



                                          


                                          

         
def application(scope):
    assert scope['type'] == 'http'

    return app_http


async def app_http(receive, send):
    await send(
        {
            'type': 'http.response.start',
            'status': 200,
            'headers': [
                (b'content-length', b'0'),
            ],
        }
    )