summaryrefslogtreecommitdiff
path: root/requests/models.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1508 from dieterv/masterKenneth Reitz2013-07-311-3/+0
|\ | | | | remove duplicate comment
| * remove duplicate commentDieter Verfaillie2013-07-311-3/+0
| | | | | | This is already mentioned at line 357...
* | Merge pull request #1498 from Lukasa/incompletereadKenneth Reitz2013-07-311-4/+10
|\ \ | | | | | | Wrap IncompleteRead in ChunkedEncodingError.
| * | Wrap IncompleteRead in ChunkedEncodingError.Cory Benfield2013-07-281-4/+10
| |/
* | Merge pull request #1501 from sigmavirus24/remove_setting_of_hooksKenneth Reitz2013-07-311-1/+0
|\ \ | | | | | | Fix duplication of efforts caught by @dofelw
| * | Fix duplication of efforts caught by @dofelwIan Cordasco2013-07-291-1/+0
| | |
* | | Merge settings when creating PreparedRequest, don't copy Request.Robert Estelle2013-07-311-32/+27
| | |
* | | Shallow copy of Request fields in Request.copy()Robert Estelle2013-07-301-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | This prevents e.g. modifying the headers of a copied request from affecting the headers of its source and vice versa. Copying is used with the intent to mutuate, so allowing this kind of mutation of fields makes sense. Is a deep copy better?
* | | Prepare requests with session settings separately from sending.Robert Estelle2013-07-301-0/+13
| |/ |/|
* | Merge pull request #1494 from Lukasa/closeCory Benfield2013-07-271-0/+5
|\ \ | | | | | | Document the Response.close() method.
| * | Document the Response.close() method.Cory Benfield2013-07-251-0/+5
| |/
* | Merge pull request #1476 from sigmavirus24/add_copy_to_prepared_requestsKenneth Reitz2013-07-261-0/+9
|\ \ | |/ |/| [2.0] Add copy method to PreparedRequest objects
| * Add copy method to PreparedRequest objectsIan Cordasco2013-07-201-1/+10
| |
* | Fix a few warnings flagged by PyDevDavid Pursehouse2013-07-221-2/+1
|/ | | | | | - Unused import of urlparse - Unnecessary definition of variable - Incorrect indentation
* Remove urllib3-specific kwargs from general codeCory Benfield2013-07-041-1/+1
|
* Use the new urllib3 stream generator.Cory Benfield2013-06-181-5/+12
|
* Only switch to chunked if we don't know the length of a file like object. ↵Jeff Mancuso2013-05-231-2/+2
| | | | This fixes the case of trying to upload a 0-length file - chunked upload was being forced. Services like S3 that disallow chunked upload will fail.
* Fix typo, %t -> %rpapaeye2013-05-221-1/+1
|
* Only pass unicode fieldnames to urllib3.Ib Lundgren2013-05-211-1/+1
|
* Fix for #1362.Dave Shawley2013-05-161-7/+15
| | | | | | | | | | | | | `PreparedRequest.prepare_url` incorrectly applied IDNA encoding to the URLs entire `netloc`. It should only be encoding the hostname portion of the URL. IDNA encoding was limiting the user info, host, and port segments to be a maximum of 63 characters which causes problems for all by the most trivial user + password combinations. - Replaced usage of `urlparse` in `PreparedRequest.prepare_url` with `urllib3` equivalent. - Modified IDNA encoding section so that it only encodes the host portion of the URL.
* Prevent a KeyError when there's no link headersIan Cordasco2013-05-081-1/+1
|
* Merge pull request #1279 from jemerick/unicode_multipart_postKenneth Reitz2013-04-161-5/+7
|\ | | | | Unicode strings in multipart post requests
| * model the encode_files data handling after encode_paramsJason Emerick2013-04-021-5/+7
| |
| * use compat.str instead of compat.builtin_strJason Emerick2013-04-011-2/+2
| |
* | Use streaming decompression feature of urllib3.schlamar2013-04-101-3/+3
| |
* | Fix #1293Ian Cordasco2013-04-061-1/+4
| |
* | Merge pull request #1277 from pborreli/typosKenneth Reitz2013-04-011-1/+1
|\ \ | | | | | | Fixed typos
| * | Fixed typosPascal Borreli2013-04-011-1/+1
| |/
* | is should not be used for comparing numbersAlex Gaynor2013-03-311-1/+1
|/
* Fix the tests and unseparate comments from codeIan Cordasco2013-03-281-1/+1
| | | | See the comments on the previous few commits on GitHub.
* This should take care of #1266Ian Cordasco2013-03-271-3/+5
| | | | | We were sending 'None' as the Content-Length on requests where the body was a generator. This commit should prevent that entirely.
* Clarify streaming behavior in iter_lines docJustin Fenn2013-03-251-7/+8
|
* firstKenneth Reitz2013-03-221-1/+1
|
* actually cleanup url authenticationKenneth Reitz2013-03-221-4/+8
|
* simplify get_auth_from_url callKenneth Reitz2013-03-221-5/+4
|
* - Pull credentials out of the URL when possible.Jamu Kakar2013-03-211-1/+5
|
* Add ability to pass `response` to `HTTPError()`Dmitry Medvinsky2013-03-031-3/+1
| | | | | | Just a little refactoring, but it seems nicer to me to be able to pass the response when constructing the `HTTPError` instance instead of constructing it and then changing the member variable.
* URLError doesn't exist anymoresprt2013-03-011-1/+1
|
* Revert "If Content-Length is already set.."[1]Ian Cordasco2013-02-251-2/+0
| | | | | | This reverts commit 544d08d0f61c35358cf13b4a6b677e4e51dbbe7e. [1]"If Content-Length is already set, don't over ride it"
* Merge pull request #1181 from denis-ryzhkov/masterKenneth Reitz2013-02-121-0/+1
|\ | | | | Fix of UnicodeDecodeError on unicode header name that can be converted to ascii.
| * Deleted is_py2 check from unicode_header_name fix thanks to Lukasa.Denis Ryzhkov2013-02-121-2/+1
| |
| * Fix of UnicodeDecodeError on unicode header name that can be converted to ascii.Denis Ryzhkov2013-02-111-0/+2
| |
* | removed no longer used redirect codes from modelsPiotr Dobrogost2013-02-111-2/+0
|/ | | | added numeric values of redirect codes in comments
* If Content-Length is already set, don't overrideIan Cordasco2013-02-011-0/+2
| | | | Re: #1159
* More useful docstring.Cory Benfield2013-01-281-1/+1
|
* Make Response objects iterable.Cory Benfield2013-01-281-0/+4
|
* Merge pull request #1146 from oczkers/masterKenneth Reitz2013-01-271-4/+2
|\ | | | | It`s more pep8 now
| * it`s more pep8 nowoczkers2013-01-271-4/+2
| |
* | Use timedelta and change attribute name back to elapsedChris Lee2013-01-271-2/+4
| |
* | Time how long each request takesChris Lee2013-01-271-0/+3
|/ | | | Stored as attribute Response.time_taken