Commit Graph

176 Commits

Author SHA1 Message Date
kennethreitz c04b044b30 Update advanced.rst 2017-09-04 16:09:08 -04:00
kennethreitz 8be8105c42 Update advanced.rst 2017-09-04 15:53:26 -04:00
Pascal Van Acker ac9a3e5320 fixed syntax for code block for prepared requests 2017-08-28 11:14:05 +02:00
Pascal Van Acker 785c733415 Add environment info to prepared requests
When using prepared requests, the environment is not taken into account. This should be reflected in the documentation.
2017-08-28 10:58:44 +02:00
NikosVlagoidis 218978601f Fix issue #3863 2017-08-09 20:18:43 +03:00
NikosVlagoidis cb9620780f Update advanced.rst 2017-08-09 18:52:26 +03:00
Nikolaos Vlagoidis 963c78853f Fixes issue #3863 2017-08-09 15:38:45 +03:00
Ed Morley 4847f5b8cd Allow Requests.Response to be used as a context manager
This saves having to wrap the call to requests with
`contextlib.closing()`, allowing it to be used directly in a
`with` statement, like so:

```
with requests.get('http://httpbin.org/get', stream=True) as r:
    # Do things with the response here.
```

Fixes #4136.
2017-06-06 23:30:47 +01:00
kennethreitz 7f14db17c8 new requests namespace 2017-05-29 12:11:43 -04:00
kennethreitz 6fb9b1ce53 fix lack of taste
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-05-21 23:25:18 -07:00
Anthony Shaw 3cb7539981 Update advanced.rst
break client side certificates out into a sub header
2017-04-02 20:21:37 +10:00
Brian Schiller e0ba82949b Change apostrophe placement in advanced.rst
See Rule2a on http://www.grammarbook.com/punctuation/apostro.asp
2017-03-14 10:09:41 -05:00
Nate Prewitt f5c5536916 updating https demo urls 2017-01-04 15:23:23 -07:00
Nate Prewitt d81ad06c64 documentation on encoding fallback for streaming 2016-11-14 09:52:40 -07:00
Nate Prewitt 71b8941f0e adding decoding requirement for Python 3 2016-11-14 09:43:19 -07:00
Cory Benfield 02ab1ba5bd Let's use capitals. 2016-10-12 11:11:05 +01:00
Stewart Polley 341bed9e17 Add Documentation for custom methods 2016-10-08 06:22:07 +10:00
Om Prakash 06920cc266 fixes broken link on documentation page
Issue #3603
2016-09-28 16:34:02 +05:30
Richard van den Berg 2cd05271be Add persistent examples 2016-08-26 09:43:11 +02:00
Maik b5fac31688 Changes to documentation based on comments and correction of list of authors. 2016-08-17 22:03:18 +02:00
Maik Himstedt b26606cc3c Adding notes about Request's timeout behavior. 2016-08-17 20:27:00 +02:00
Nate Prewitt 1435cf5aff docs updates 2016-08-14 20:56:52 -06:00
kennethreitz 6c9a0eff04 compensate for lack of taste 2016-06-09 00:38:53 -04:00
Cory Benfield 7a404cf4ec Document header ordering. (#3295) 2016-06-08 11:44:33 -05:00
Ian Cordasco 3669b4216a Merge pull request #3173 from Lukasa/socks-proxy-docs
Add section on SOCKS proxies.
2016-05-05 12:18:27 -05:00
Cory Benfield 339e950dc7 Add section on SOCKS proxies. 2016-05-03 08:07:30 +01:00
Lukas Vacek 52facb2257 docs: Add a note about SSL c_rehash 2016-05-02 23:03:35 +02:00
Rémy HUBSCHER 70a344d8eb Update readthedocs links. 2016-04-28 12:39:10 +02:00
Kevin Burke e94c812c2d Clarify that SSL verification is on by default
Generally if a kwarg is present it indicates that an option other than the
default is being specified. Putting `verify=True` in the first code sample
for SSL confused me, because it seemed to indicate that you had to specify
`verify=True` to get SSL verification. The opposite is true; SSL verification
is turned on by default and you have to specify `verify=False` to opt out of
SSL verification.

Updates the docs to make this more clear. Furthermore, connections to
https://kennethreitz.com currently time out instead of presenting an invalid
certificate, so I replaced this domain with https://requestb.in, which presents
the same error message as is currently there.
2016-03-17 08:16:56 -07:00
kennethreitz f8af499700 improve further advanced.rst 2016-02-19 02:45:07 -05:00
kennethreitz f4445b3d4f improve advanced.rst 2016-02-19 02:42:22 -05:00
kennethreitz f4f863f168 cleanup advanced.rst
single-quoted strings, yo!
2016-02-19 02:06:33 -05:00
kennethreitz e98d71de13 docs cleanup 2016-02-19 00:56:14 -05:00
Cory Benfield 5887b136e3 Warn about encrypted keys in the docs. 2016-01-27 11:56:27 +00:00
Vincent Bernat f14f30817e advanced: use "client.*" to designate client certificate
Using "server.crt" is confusing as one may try to put the server certificate while this is really the client certificate that should be put here. Instead, use "client.cert", "client.key" and "client.pem".
2015-12-28 16:21:53 +01:00
Cory Benfield 0352ec0bd3 Add support for a directory of CAs 2015-11-05 13:21:21 +00:00
Cory Benfield 7c55446b7e Add warnings about text/binary mode files. 2015-10-14 13:23:19 +01:00
Jim Browne 2cee3bb57a docs: move CA Certificates next to SSL Cert Verification 2015-09-11 10:50:23 -07:00
Jakub Wilk e9c94e0f06 docs: Fix typos 2015-09-10 22:45:59 +02:00
Cory Benfield 56ecdebcc5 Merge pull request #2741 from jasongrout/per-host-proxy
Implement per-host proxies
2015-09-06 15:02:40 +12:00
Jason Grout 704a922fc2 Clarify documentation for per-host proxies
Make sure it's clear that a per-host proxy matches a scheme and exact
hostname.
2015-09-04 22:55:38 +00:00
Cory Benfield 7c958ee28e Document the string form of the verify parameter. 2015-08-31 10:26:06 +01:00
Jason Grout 618514231b Reword documentation for per-host proxies 2015-08-25 15:11:27 +00:00
Jason Grout 56844d1287 Add documentation for host-specific proxies 2015-08-25 14:53:52 +00:00
Lukas Graf 1bb91653cc Docs: Clarify that method-level params are not persisted in sessions. 2015-08-08 01:57:06 +02:00
Lukas Graf 8f3ddbeefb Mention connection pooling in session docs. 2015-08-07 20:48:07 +02:00
Lukas Graf 75c1776bde Document use of sessions as context managers. 2015-08-07 20:48:03 +02:00
Ian Cordasco d0aecb271f Merge pull request #2506 from Lukasa/chunkeddocs
Expand on chunked handling.
2015-07-18 10:44:31 -05:00
Cory Benfield 2b5cdc56f3 Expand on chunk length 2015-07-18 16:41:29 +01:00
Andrew Widdersheim 7ba130a0cb Docs: Add more section labels for referencing
Allows for sections to be linked from other projects using Intersphinx.
2015-05-26 09:16:24 -04:00