ne and m != []:
                if type(m[0]) is not tuple:
                    m = tuple(m)
                else:
                    m = m[0]
                req.context[&#34;matches&#34;] = m  # tuple or list
                return await next()

        # As the text doesn&#39;t match, skip running the listener
        return resp</code></pre>
</details>
<div class="desc"><p>A middleware can process request data before other middleware and listener functions.</p>
<p>Captures matched keywords and saves th