summaryrefslogtreecommitdiff
path: root/requests/api.py
Commit message (Collapse)AuthorAgeFilesLines
* update json param's description to avoid confusionElias Obeid2018-04-301-1/+1
| | | - the Request class doesn't accept JSON, but a JSON serializable object
* typoJiuLi Gao2017-06-091-1/+1
|
* fix spaces in api.pyKenneth Reitz2017-05-291-1/+1
|
* Specify that the timeout parameter is in seconds.Randy Barlow2017-05-061-1/+1
| | | | Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
* Fixes DeprecationWarnings in Python 3.6 due to invalid escape sequences. ↵Ruben Dura Tari2017-04-051-7/+7
| | | | Fixes #3954
* PR review fixes:Bastien Gérard2017-03-221-1/+3
| | | | | | - used httpbin_secure for tests - updated docstring related to `verify` param" - used TLS acronym instead of SSL
* Removed sentence as suggested.Marcos Dione2017-03-071-1/+1
| | | Fair enough...
* Add mention to list od tuples as data param.Marcos Dione2017-03-071-1/+1
| | | `requests.request` accepts list of tuples in the `data` param, but thereś no mention of it in the docs.
* fixed #3894 by mentioning form-encoding of dictLutz Horn2017-03-011-4/+4
| | | The optional `data` parameter will be form-encoded, if a dictionary is provided.
* Add default value of allow_redirects to docsPeter Inglesby2017-01-121-1/+1
|
* Clarify allow_redirectsBarbara Miller2016-11-151-1/+1
| | | Make consistent with quickstart doc.
* documentation line added for consistency with the post methodhootnot2016-11-031-0/+2
|
* making module docstrings and coding comments consistentNate Prewitt2016-07-191-1/+0
|
* Update docstring and API doc to document ability to add per-file headers in ↵Alexander Hermes2016-03-291-1/+5
| | | | | | multipart POST * Docstring only change - for the function itself cf. requests Issue #1640
* Refactor default paramsBrian Samek2015-12-111-1/+1
| | | | | | Specified the default argument for params that have a default in the docstring so that the default is easier to see from the code. Modified the docstring in api.py to match the docstring in sessions.py.
* Assure session is closed on exception.Artur Siekielski2015-11-061-7/+5
|
* Docs: Fix links to `timeouts` section by using :ref: instead ofLukas Graf2015-08-151-2/+2
| | | | linking to .html files.
* Make docstring of api.get more clearMatt Havard2015-04-301-2/+3
|
* Add return type field to entry-point docstringsUlrich Petri2015-03-141-8/+23
| | | Fixes: #2483
* Close sessions created in the functional APIIan Cordasco2014-11-071-1/+6
| | | | | | | | This is related to #1882 and #1685. By calling close on the session, we clear the PoolManager operated by the Session and close all sockets. Fixes #1882 Partially-fixes #1685
* Merge pull request #2258 from willingc/add-jsonKenneth Reitz2014-10-051-2/+4
|\ | | | | Add json parameter
| * Adds json parameter for POST requestsCarol Willing2014-08-281-2/+4
| |
* | Document Timeout behaviourKevin Burke2014-08-291-2/+6
|/
* The timeout is in seconds.Cory Benfield2014-02-161-1/+1
|
* Revert "[kennethreitz/requests#1208] adding a max_retries argument"Kenneth Reitz2013-03-031-1/+0
| | | | This reverts commit 796d3225ddf08a9ebaa429209b9d077c3a8f99b8.
* [kennethreitz/requests#1208] adding a max_retries argumentWilfred Hughes2013-02-271-0/+1
|
* Missing line was allowing redirects with HEADIan Cordasco2013-02-201-0/+1
| | | | Closes #1203
* api docsKenneth Reitz2012-12-231-0/+6
|
* Tweaked the 'data' param docs to indicate that a file-like object is also ↵Hans Lellelid2012-12-201-4/+4
| | | | supported.
* /s/prefetch/streamKenneth Reitz2012-12-171-1/+1
|
* nice and cleanupKenneth Reitz2012-12-171-1/+0
|
* further remove configKenneth Reitz2012-12-171-13/+1
|
* json errorsKenneth Reitz2012-12-161-0/+1
|
* WHOOOOOOOOOOOOOOOOKenneth Reitz2012-12-151-5/+2
|
* Updates from ISC to Apache2Lyndsy Simon2012-12-051-1/+1
|
* Merge pull request #983 from jszakmeister/allow-strictKenneth Reitz2012-12-021-1/+1
|\ | | | | Add the ability to turn off HTTP 0.9 support.
| * Add the ability to turn off HTTP 0.9 support.John Szakmeister2012-12-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While debugging an issue I discovered requests was coming back with 200 response, when it really shouldn't have. It turns out this happened for two reasons: the jetty server running the app was rather lame and didn't fail the request as a Bad Request, and httplib was happy to let malformed data through and call it success. It turns out httplib's strict flag controls this behavior of whether or not to validate the status line. The underlying urllib3 supports the concept as well. There was a bug there to that is now fixed upstream. The last step is exposing this through requests. This introduces a supports_http0.9 flag to help control this behavior. It defaults to to True to preserve the current behavior. Setting it to False will allow the underlying HTTPConnection to validate the status line.
* | Fixed so that safe_mode works for SessionsJonatan Heyman2012-11-231-2/+0
|/
* Whitespace fixes following PEP8.Locker5372012-08-161-0/+2
|
* address connection leak issue from #520Shivaram Lingamneni2012-08-051-4/+13
| | | | | | | | | | | | | * prefetch now defaults to True, ensuring that by default, sockets are returned to the urllib3 connection pool on request end * sessions now have a close() method, notifying urllib3 to close pooled connections * the module-level API, e.g., `requests.get('http://www.google.com')`, explicitly closes its session when finished When prefetch is False, the open socket becomes part of the state of the Response object, and it's the client's responsibility to read the whole body, at which point the socket will be returned to the pool.
* Issue #505: Changed the store_cookie configuration to be part of the config ↵Arup Malakar2012-05-231-2/+1
| | | | dict, instead of being a new argument
* authorsKenneth Reitz2012-05-161-0/+1
|\
| * Issue #505: Allow disabling of cookie persistence/sendingArup Malakar2012-05-161-0/+1
| |
* | New implementation of safe_mode. Now, we throw exceptions in models.py ↵Josh Imhoff2012-05-091-0/+2
|/ | | | regardless of safe_mode. We catch those exceptions at the API level and return a blank Response. See safe_mode.py for details.
* Sphinx throws an error if you don't escape ** in **kwargsIan Danforth2012-03-181-7/+7
|
* Updated Requests api to accept a 'cert' argument.chadnickbok@gmail.com2012-03-141-2/+1
| | | | | | | | This argument can be either a string, containing the path to a pem-formatted key and certificate chain, or a tuple of (cert, key). When supplied a tuple, the values are paths to an SSL certificate chain file and key, respectively.
* Exposed key_file and cert_file in requests, to support https client ↵chadnickbok@gmail.com2012-03-141-0/+2
| | | | certificates.
* history for HEAD 3xxv0.10.3Kenneth Reitz2012-02-201-1/+1
|
* Added prefetch documentation for apiFrank Kumro2012-01-121-0/+1
|
* The `request` method of `Session` class does not take a `session` argument. ↵Shrikant Sharat Kandula2012-01-091-1/+1
| | | | But `api.request` does. So, it has to be popped before you can send the whole `kwargs` dict to `Session.request` method.