       # do something here
            await next_()

    Args:
        req: The incoming request
        resp: The response
        next: The function to tell the chain that it can continue

    Returns:
        Processed response (optional)
    &#34;&#34;&#34;
    raise NotImplementedError()</code></pre>
</details>
<div class="desc"><p>Processes a request data before other middleware and listeners.
A middleware calls <code>next()</code> function if the chain should continue.</p>
<pre><code>@app.middleware