summaryrefslogtreecommitdiff
path: root/docs/dev
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2020-12-04 20:04:39 +0100
committerAlexandre Flament <alex@al-f.net>2020-12-04 20:04:39 +0100
commitf0054d67f11bf954cd137684950b6aea2a3956b6 (patch)
tree8c4f4752d22b69a3929c79ed5ea41f63716f5663 /docs/dev
parentf56e78ee804ba7e46ffed000dbcf0b9f3b2f7ecc (diff)
downloadsearxng-f0054d67f11bf954cd137684950b6aea2a3956b6.tar.gz
searxng-f0054d67f11bf954cd137684950b6aea2a3956b6.zip
[fix] wikipedia engine: don't raise an error when the query is not found
Add a new parameter "raise_for_status", set by default to True. When True, any HTTP status code >= 300 raise an exception ( #2332 ) When False, the engine can manage the HTTP status code by itself.
Diffstat (limited to 'docs/dev')
-rw-r--r--docs/dev/engine_overview.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/dev/engine_overview.rst b/docs/dev/engine_overview.rst
index 0f58af765..0b5f9857f 100644
--- a/docs/dev/engine_overview.rst
+++ b/docs/dev/engine_overview.rst
@@ -134,9 +134,9 @@ The function ``def request(query, params):`` always returns the ``params``
variable. Inside searx, the following paramters can be used to specify a search
request:
-================== =========== ========================================================================
+================== =========== ==========================================================================
argument type information
-================== =========== ========================================================================
+================== =========== ==========================================================================
url string requested url
method string HTTP request method
headers set HTTP header information
@@ -145,7 +145,8 @@ cookies set HTTP cookies
verify boolean Performing SSL-Validity check
max_redirects int maximum redirects, hard limit
soft_max_redirects int maximum redirects, soft limit. Record an error but don't stop the engine
-================== =========== ========================================================================
+raise_for_status bool True by default: raise an exception if the HTTP code of response is >= 300
+================== =========== ==========================================================================
example code