diff options
author | Alexandre Flament <alex@al-f.net> | 2020-12-11 14:52:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-11 14:52:18 +0100 |
commit | 9f8ebeca4481344ce7bd773a4f64360da01f0a77 (patch) | |
tree | 7834dc899b99db4ea3f9f81542e8e029bf5b7d04 /docs/dev/engine_overview.rst | |
parent | 033f39bff7b3365256491014140e35aa1e974d4e (diff) | |
parent | d703119d3a313a406482b121ee94c6afee3bc307 (diff) | |
download | searxng-9f8ebeca4481344ce7bd773a4f64360da01f0a77.tar.gz searxng-9f8ebeca4481344ce7bd773a4f64360da01f0a77.zip |
Merge pull request #2375 from dalf/raise_for_errors
[enh] add raise_for_httperror
Diffstat (limited to 'docs/dev/engine_overview.rst')
-rw-r--r-- | docs/dev/engine_overview.rst | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/docs/dev/engine_overview.rst b/docs/dev/engine_overview.rst index 99726a456..3562ca61a 100644 --- a/docs/dev/engine_overview.rst +++ b/docs/dev/engine_overview.rst @@ -134,19 +134,19 @@ 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 -data set HTTP data information (parsed if ``method != 'GET'``) -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 -================== =========== ========================================================================== +=================== =========== ========================================================================== +argument type information +=================== =========== ========================================================================== +url string requested url +method string HTTP request method +headers set HTTP header information +data set HTTP data information (parsed if ``method != 'GET'``) +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_httperror bool True by default: raise an exception if the HTTP code of response is >= 300 +=================== =========== ========================================================================== example code |