Kenneth Reitz
7eb9a9298e
Merge pull request #1506 from Lukasa/mockrequest
...
Provide 'host' parameter to MockRequest.
2013-07-31 18:22:02 -07:00
Kenneth Reitz
3e6e68baa1
Merge pull request #1507 from buzztabapp/prepared-session-requests
...
Allow preparing of Requests from Session settings without sending.
2013-07-31 18:21:28 -07:00
Robert Estelle
0ab7a52f7c
Merge settings when creating PreparedRequest, don't copy Request.
2013-07-31 13:42:02 -07:00
Robert Estelle
0eccb547a2
Add Session.prepare_request test case.
2013-07-30 23:02:13 -07:00
Robert Estelle
d4385f6fc8
Add Request.copy() test case.
2013-07-30 23:01:56 -07:00
Robert Estelle
ee90f0af60
Shallow copy of Request fields in Request.copy()
...
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?
2013-07-30 22:59:53 -07:00
Robert Estelle
9edba838b3
Skip unneccessary Request.copy in Session.request
2013-07-30 22:59:11 -07:00
Robert Estelle
b5c136152f
Prepare requests with session settings separately from sending.
2013-07-30 21:39:36 -07:00
Cory Benfield
6ef3710970
Provide 'host' parameter to MockRequest.
2013-07-30 18:21:37 +01:00
Cory Benfield
9473f15909
Merge pull request #1494 from Lukasa/close
...
Document the Response.close() method.
2013-07-27 23:04:34 -07:00
Kenneth Reitz
77bd9c4a9d
Merge pull request #1476 from sigmavirus24/add_copy_to_prepared_requests
...
[2.0] Add copy method to PreparedRequest objects
2013-07-26 18:16:00 -07:00
Cory Benfield
f401287afb
Document the Response.close() method.
2013-07-25 19:10:42 +01:00
Cory Benfield
3becc47366
Comment markups, courtesy of @sigmavirus24
2013-07-24 16:03:24 +01:00
Kenneth Reitz
7d3d074e66
Merge pull request #1490 from Lukasa/cookiedocs
...
Better cookie docs on sessions.
2013-07-24 06:12:10 -07:00
Cory Benfield
f40a1d6a8a
Better cookie docs on sessions.
2013-07-24 13:25:59 +01:00
Kenneth Reitz
b65b8c5ed3
Merge pull request #1486 from sigmavirus24/use_urljoin
...
Use urlparse.urljointo construct httpbin url
2013-07-23 09:03:05 -07:00
Ian Cordasco
c0cb698191
Derp. Use compat
2013-07-23 10:48:45 -05:00
Ian Cordasco
d2176cf052
Use urlparse.urljointo construct httpbin url
2013-07-23 10:24:30 -05:00
Kenneth Reitz
f71bff1226
Merge pull request #1482 from dpursehouse/fix-testcases-with-proxy
...
Fix test cases that fail when running behind a proxy
2013-07-23 05:23:35 -07:00
Kenneth Reitz
47f5a0db64
Merge pull request #1483 from dpursehouse/httpbin-url-without-trailing-slash
...
Test cases fail when `HTTPBIN_URL` does not have trailing slash
2013-07-23 05:23:11 -07:00
David Pursehouse
9e771aa79c
Fix test cases that fail when running behind a proxy
...
When sending a request via `Session.send()` the proxies must be
explicitly given with the `proxies` argument. This is not done
in the test cases, which means that they fail when run on a system
that is behind a proxy.
Update test cases to make sure the proxies are set in the sessions.
2013-07-23 16:55:27 +09:00
David Pursehouse
29db7b7216
Test cases fail when HTTPBIN_URL does not have trailing slash
...
Test cases can be run against a local httpbin server defined by
the `HTTPBIN_URL` environment variable, but it causes tests to
fail if the given URL does not end with a slash.
Ensure that the URL always ends with a slash.
2013-07-23 15:29:36 +09:00
Kenneth Reitz
66de6b528d
Merge pull request #1479 from dpursehouse/fix-warnings
...
Fix a few warnings flagged by PyDev
2013-07-22 01:31:16 -07:00
David Pursehouse
4f64938ff0
Fix a few warnings flagged by PyDev
...
- Unused import of urlparse
- Unnecessary definition of variable
- Incorrect indentation
2013-07-22 17:14:45 +09:00
Kenneth Reitz
e5597dfcce
Merge pull request #1478 from dpursehouse/add-me-to-authors
...
Add myself to the authors list
2013-07-22 00:09:35 -07:00
David Pursehouse
787c1e8c6e
Add myself to the authors list
2013-07-22 15:19:10 +09:00
Cory Benfield
ec6584f2d1
Merge pull request #1477 from dpursehouse/other-auth-basic-example
...
Add a simple example of custom authentication in the documentation
2013-07-21 23:04:31 -07:00
David Pursehouse
62f0df4434
Add a simple example of custom authentication in the documentation
...
Refs #1471
2013-07-22 09:14:33 +09:00
David Pursehouse
5cdcf58b3b
Wrap long lines in the authentication documentation
2013-07-22 09:08:47 +09:00
Ian Cordasco
b84547d786
Add copy method to PreparedRequest objects
2013-07-20 17:08:35 -04:00
Kenneth Reitz
d83919a6f7
Merge pull request #1474 from Kwpolska/docfix
...
Some tiny fixes to the documentation
2013-07-20 05:15:06 -07:00
Kwpolska
2ef782b8e6
further treatment
...
Signed-off-by: Kwpolska <kwpolska@gmail.com >
2013-07-20 13:54:33 +02:00
Kwpolska
b738c97ec3
session object should be uppercase
...
Signed-off-by: Kwpolska <kwpolska@gmail.com >
2013-07-20 13:39:50 +02:00
Kwpolska
022c370bcd
fixed underline
...
Signed-off-by: Kwpolska <kwpolska@gmail.com >
2013-07-20 13:31:37 +02:00
Kwpolska
587385bfe0
Grammar fixes and such
...
Signed-off-by: Kwpolska <kwpolska@gmail.com >
2013-07-20 12:56:25 +02:00
Kwpolska
ca033b83fe
Some cosmetic updates to the docs
...
Signed-off-by: Kwpolska <kwpolska@gmail.com >
2013-07-20 12:12:57 +02:00
Cory Benfield
949a29c34f
Merge pull request #1470 from Lukasa/carset
...
Remove charset from JSON types: not valid.
2013-07-19 06:45:56 -07:00
Cory Benfield
be884341f4
Merge pull request #1465 from dpursehouse/doc-netrc-authentication
...
Improve documentation of netrc authentication
2013-07-19 06:45:17 -07:00
David Pursehouse
c88fd8cc9d
Move netrc authentication documentation under the Basic Auth section
2013-07-19 22:37:57 +09:00
Cory Benfield
8385fb397b
Remove charset from JSON types: not valid.
2013-07-19 14:03:20 +01:00
Cory Benfield
e0df4b5f18
Merge pull request #1466 from s7v7nislands/fix_doc
...
Fix doc
2013-07-19 04:12:29 -07:00
s7v7nislands
39ad5e7388
merge
2013-07-19 17:12:01 +08:00
s7v7nislands
0df505bd7c
fix doc
2013-07-19 17:04:53 +08:00
David Pursehouse
6f6a920a68
Improve documentation of netrc authentication
...
The documentation does not make it clear that when the credentials
from netrc are used, Requests authenticates with HTTP Basic Auth.
I just spent ages trying to figure out why it wasn't working, and
it was because although the credentials in the netrc were correct,
the server actually required HTTP Digest Auth.
Add a section in the authentication documentation to make it clear
that HTTP Basic Auth is used.
2013-07-19 17:30:54 +09:00
Cory Benfield
32293655ff
Merge pull request #1464 from dpursehouse/document-none-not-sent
...
Fix #1322 : Add note in docs about None not being sent as data
2013-07-19 01:19:55 -07:00
David Pursehouse
07ad75ee04
Fix #1322 : Add note in docs about None not being sent as data
...
In the case:
payload = {'key1': 'value1', 'key2': 'value2', 'key3': None}
r = requests.get("http://httpbin.org ", params=payload)
the parameter `key3` will not be sent as a parameter in the URL.
Mention this in the documentation.
2013-07-19 17:14:59 +09:00
Kenneth Reitz
e4b41320e6
Merge pull request #1463 from AudriusButkevicius/master
...
Update urllib3 to a43319f
2013-07-18 15:00:28 -07:00
Audrius Butkevicius
9f119ee420
Update urllib3 to a43319f
2013-07-18 21:06:19 +00:00
Kenneth Reitz
e0df2168b7
Merge remote-tracking branch 'origin/master'
2013-07-16 02:20:28 -04:00
Kenneth Reitz
d7e8073198
badge.fury.io
2013-07-16 02:20:23 -04:00