summaryrefslogtreecommitdiff
path: root/requests/api.py
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* :sparkles: 2012 :sparkles: Kenneth Reitz2012-01-011-1/+1
|
* ssl docsKenneth Reitz2011-12-281-0/+1
|
* api cleanupKenneth Reitz2011-12-281-1/+1
|
* simplify api.requestKenneth Reitz2011-12-281-32/+2
|
* whitespaceKenneth Reitz2011-12-141-1/+0
|
* Fix spelling errors, typos.Nick Hatch2011-12-111-1/+1
|
* Rename use_session to session.Shrikant Sharat2011-11-251-4/+4
|
* Add use_session argument to request method.Shrikant Sharat2011-11-251-1/+3
| | | | | This allows usage of an existing session to make a request with the request and the get, post etc. function.
* updated docs for last change in `files` argument to support explicit filename.Rolando Espinoza La fuente2011-11-181-1/+1
|
* explicitKenneth Reitz2011-11-121-3/+15
|
* remove bunk __all__sKenneth Reitz2011-11-121-2/+0
|
* consistiencyKenneth Reitz2011-11-121-3/+3
|
* better defaultsKenneth Reitz2011-11-121-3/+3
|
* Merge branch 'develop' of https://github.com/jbrendel/requests into developKenneth Reitz2011-11-091-1/+12
|\ | | | | | | | | | | Conflicts: AUTHORS requests/__init__.py
| * Added support for OPTIONS method.jbrendel2011-11-081-1/+12
| |
* | prefetching on all methodsKenneth Reitz2011-11-091-1/+2
|/