sha016
e2fa8d3654
mention all_proxy env variable in Proxies section
2021-11-13 20:58:30 -06:00
Kevin Kirsche
fc106ab586
fix minor typos ( #5934 )
2021-09-15 06:43:12 -05:00
Nate Prewitt
9572d6a299
General doc updates ( #5923 )
2021-09-02 08:53:46 -07:00
Israel Tsadok
b0e025ade7
Fix broken link to adapters essay ( #5899 )
2021-08-03 22:58:51 -07:00
Egor
a3d54b83f7
Update advanced.rst ( #5821 )
...
* Update advanced.rst
* remove confusing euphemism
2021-07-18 05:59:37 -05:00
Ash Berlin-Taylor
2ed84f55b2
Switch LGPL'd chardet for MIT licensed charset_normalizer ( #5797 )
...
Although using the (non-vendored) chardet library is fine for requests
itself, but using a LGPL dependency the story is a lot less clear
for downstream projects, particularly ones that might like to bundle
requests (and thus chardet) in to a single binary -- think something
similar to what docker-compose is doing. By including an LGPL'd module
it is no longer clear if the resulting artefact must also be LGPL'd.
By changing out this dependency for one under MIT we remove all
license ambiguity.
As an "escape hatch" I have made the code so that it will use chardet
first if it is installed, but we no longer depend upon it directly,
although there is a new extra added, `requests[lgpl]`. This should
minimize the impact to users, and give them an escape hatch if
charset_normalizer turns out to be not as good. (In my non-exhaustive
tests it detects the same encoding as chartdet in every case I threw at
it)
Co-authored-by: Jarek Potiuk <jarek@potiuk.com >
Co-authored-by: Jarek Potiuk <jarek@potiuk.com >
2021-07-06 18:55:02 -05:00
Francois Marier
1466ad713c
Fix GitHub links ( #5835 )
...
All of these links now redirect to a repo under a different GitHub
user account.
2021-05-31 21:23:54 -07:00
Andrew M. White
913880c45a
Fix typo
2021-02-24 10:19:48 -07:00
XiaojueGuan
74b7280049
Fix typo request -> requests
2021-01-22 07:41:39 -06:00
Ben Bodenmiller
f6072f1e14
Format c_rehash
2021-01-19 17:27:56 -08:00
Sylvain MARIE
f02a80cbe8
Updated proxies documentation
2020-11-27 17:44:13 +01:00
Sylvain MARIE
2fddbe3606
Updated proxies documentation
2020-11-27 11:51:47 +01:00
Nate Prewitt
962c8986ca
Merge pull request #5594 from icfly2/patch-1
...
Update advanced.rst
2020-11-16 17:31:39 -08:00
Jonathan
4840d4a376
small typo corrected.
...
a small typo was corrected.
2020-10-04 20:45:07 -04:00
Ruben
c3280d7844
Update advanced.rst
...
replaced reference to requests-async with httpx the replacement project
2020-09-23 13:19:29 +02:00
Seth Michael Larson
551a0bf0df
Recommend Pip, remove todo/philo docs, pare down support avenues
2020-08-18 15:13:59 -07:00
Matt Silverlock
02eb5a2cd3
Document the dangers of using verify=False
2020-08-16 21:31:05 -05:00
Ben Bodenmiller
2d39c0db05
Docs: list CURL_CA_BUNDLE as supported ( #5509 )
...
* Docs: list CURL_CA_BUNDLE as supported
2020-07-23 21:57:30 -07:00
Nate Prewitt
1b41763472
cleanup advanced docs header
2020-06-26 10:51:20 -08:00
Alessio Izzo
bebf5250b0
Remove explicit unicode literal in README.md and doc ( #5336 )
...
* [remove] remove "u" prefix in README and documentation examples
2020-03-25 12:44:51 -07:00
Alexander Zhukov
e11302018b
Fix the syntax highlighting in the example ( #5276 )
...
Co-authored-by: Nate Prewitt <nate.prewitt@gmail.com >
2020-02-17 23:19:38 -08:00
Nihaal
9cdf294107
Updated references to previous requests/requests GitHub path
2019-08-19 21:33:18 +01:00
Min ho Kim
5f576ad22f
Fix typos
2019-07-20 01:46:08 +10:00
Tom Christie
6f6d0164a9
Add requests-async link to "non-blocking" docs.
...
Links to https://github.com/encode/requests-async for an asyncio non-blocking option.
2019-03-27 10:09:19 +00:00
Andrew Bonney
827bbe2a7e
docs: correct error in 'merge_environment_settings' usage
...
Resolves #4959
2019-02-04 13:28:12 +00:00
Jon Dufresne
b0ad2499c8
Prefer https:// for URLs throughout project
2018-09-30 17:14:40 -05:00
Jon Dufresne
5aa6a9b654
In docs, use intersphinx to link to Python documentation
...
The intersphinx extension can generate automatic links to the
documentation of objects in other projects. It was already used for
urllib3. For complete details on intersphinx, see:
http://www.sphinx-doc.org/en/master/ext/intersphinx.html
2018-08-11 17:31:43 -07:00
Jon Dufresne
35a1874912
Update Python 2 doc links to Python 3
...
The Python 3 docs are better maintained and are the future of Python
development.
2018-06-09 20:29:41 -07:00
Nick Timkovich
919c168cdb
Certifi.io broken
...
http://certifi.io/ -> https://certifiio.readthedocs.io/
2018-05-14 09:55:33 -05:00
Victor Shih
71e402fe40
Spelling.
2018-05-07 10:51:53 -07:00
Jon Dufresne
165804b25e
Update all pypi.python.org URLs to pypi.org
...
For details on the new PyPI, see the blog post:
https://pythoninsider.blogspot.ca/2018/04/new-pypi-launched-legacy-pypi-shutting.html
2018-04-18 20:28:19 -07:00
Jon Dufresne
265ef609d5
Remove remaining references to removed, vendored packages ( #4499 )
...
As the vendored packages were removing in version 2.16, all remaining
doc references should be replaced with newer practices.
2018-02-17 08:15:54 -06:00
Jon Dufresne
9c0db92249
Clarify docs that Requests always uses certs from certifi
...
Since commit 0d7de6430e , certifi is always
used for certificates. Certify became a hard dependency of the package
in 628633143d .
Now update the docs to clarify that Request will always use certificates
from certifi.
2018-02-14 05:47:34 -08:00
Jon Dufresne
e8205c0131
Trim trialing white space throughout the project
...
Many editors clean up trailing white space on save. By removing it all
in one go, it helps keep future diffs cleaner by avoiding spurious white
space changes on unrelated lines.
2018-02-05 06:23:53 -08:00
Jon Dufresne
030dcce20c
Prefer https over http for links in the documentation
...
- Fixed Read the Docs links
- Fixed GitHub links
- Fixed PyPI links
2018-01-06 11:23:50 -08:00
Alex Chan
c5ed41e00a
Add an example of two hooks
2017-10-24 07:27:55 +01:00
Alex Chan
40c5a8b0c2
Clarify that a Session can have multiple hooks
2017-10-23 13:25:46 +01:00
Alex Chan
87f3b0a559
Switch to using dict literals, it's 2017
2017-10-23 13:25:31 +01:00
Alex Chan
2c4849defe
Add something to the docs about hooks on Session()
2017-10-23 08:30:35 +01:00
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