
async def simple_middleware(req, resp, next):
    # do something here
    await next()
</code></pre>
<p>This <code>async_process(req, resp, next)</code> method is supposed to be invoked only inside bolt-python.
If you want to avoid the name <code>next()</code> in your middleware functions, you can use <code>next_()</code> method instead.</p>
<pre><code>@app.middleware
async def simple_middleware(req, resp, next_):
    # do something here
    await next_()
</code></pre>
<h2 id="args">Args</h2>
<dl>
<dt><str