.oO SearXNG Developer Documentation Oo.
|
Functions | |
werkzeug.Response|None | filter_request (IPv4Network|IPv6Network network, flask.Request request, config.Config cfg) |
Method ``http_accept_encoding`` ------------------------------- The ``http_accept_encoding`` method evaluates a request as the request of a bot if the Accept-Encoding_ header .. - did not contain ``gzip`` AND ``deflate`` (if both values are missed) - did not contain ``text/html`` .. _Accept-Encoding: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Encoding
werkzeug.Response | None searx.botdetection.http_accept_encoding.filter_request | ( | IPv4Network | IPv6Network | network, |
flask.Request | request, | ||
config.Config | cfg ) |
Definition at line 31 of file http_accept_encoding.py.