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








                                                
 
                                  






                                                    
def application(scope, receive=None, send=None):
    assert scope['type'] == 'http'

    if receive == None and send == None:
        return app_http

    else:
        return app_http(receive, send)


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