xref: /unit/test/python/empty/asgi.py (revision 1848:4bd548074e2c)
11626Smax.romanov@nginx.comasync def application(scope, receive, send):
21626Smax.romanov@nginx.com    assert scope['type'] == 'http'
31626Smax.romanov@nginx.com
4*1848Szelenkov@nginx.com    await send(
5*1848Szelenkov@nginx.com        {
6*1848Szelenkov@nginx.com            'type': 'http.response.start',
7*1848Szelenkov@nginx.com            'status': 200,
8*1848Szelenkov@nginx.com            'headers': [(b'content-length', b'0')],
9*1848Szelenkov@nginx.com        }
10*1848Szelenkov@nginx.com    )
11