Exemplo n.º 1
0
async def serve_static_asgi(app: App, scope: ASGIScope, receive: ASGIReceive,
                            send: ASGISend):
    instance = app.statics(scope)
    await instance(receive, send)
Exemplo n.º 2
0
def serve_static_wsgi(app: App, environ: WSGIEnviron,
                      start_response: WSGIStartResponse):
    return app.statics(environ, start_response)