core/homeassistant/components/http
J. Nick Koston 9de8409f48
Speed up security filter middleware (#108703)
* Speed up security filter middleware

Check the path and query string with the filter expression once instead
of checking the path and query string seperately. If we get a hit than
we check the query string to ensure we give a more verbose error about
where the filter hit.

Additionally since we see the same urls over and over, cache the unquote

* request.url is to expensive, cheaper to join

* aiohttp has a path_qs fast path

* construct the string outselves so it functions exactly as before
2024-01-26 00:17:18 -05:00
..
__init__.py
auth.py Convert http auth internals to normal functions (#108815) 2024-01-24 22:34:52 -05:00
ban.py
const.py
cors.py
data_validator.py
decorators.py Adjust require_admin decorator typing (#108306) 2024-01-18 14:12:14 -10:00
forwarded.py
headers.py
manifest.json Bump aiohttp-zlib-ng to 0.3.1 (#107595) 2024-01-08 13:24:57 -10:00
request_context.py
security_filter.py Speed up security filter middleware (#108703) 2024-01-26 00:17:18 -05:00
static.py
view.py
web_runner.py