async def METHOD_NAME(on_startup=None, on_cleanup=None, on_shutdown=None):
    from aiohttp.web import Application
    from aiohttp_wsgi import WSGIHandler
    from vcr_server.utils.solrqueue import SolrQueue
    global app_solrqueue
    wsgi_handler = WSGIHandler(application)
    app = Application()
    # all requests forwarded to django
    app.router.add_route("*", "/{path_info:.*}", wsgi_handler)
    app_solrqueue = SolrQueue()
    app_solrqueue.setup(app=app)
    if on_startup:
        app.on_startup.append(on_startup)
    if on_cleanup:
        app.on_cleanup.append(on_cleanup)
    if on_shutdown:
        app.on_shutdown.append(on_shutdown)
    no_headers = os.environ.get("DISABLE_SERVER_HEADERS")
    if not no_headers or no_headers == "false":
        app.on_response_prepare.append(add_server_headers)
    return app