Commit Graph

1010 Commits

Author SHA1 Message Date
Nate Prewitt f6c0619d89 Disable requests[security] and remove 3.5 support references 2021-07-09 12:40:55 -07:00
Дилян Палаузов 5351469472 Add support for brotli decoding (#5783)
* Add support for Brotli decoding

When the brotli or brotlicffi packages are installed,
urllib3.util.make_headers() inserts ',br' in the Accept-Encoding header
and decodes br from the answers.

* Create the default Accept-Encoding header once

* Preserve the previous delimiter behavior

* Update prose in quickstart.rst

Co-authored-by: Seth Michael Larson <sethmichaellarson@gmail.com>
2021-07-07 08:16:28 -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
Mark Bell f6d43b03fb Updated to new be-cordial-or-be-on-your-way URL and CoC now references Python Community CoC (#5811)
* Updated references to new be-cordial-or-be-on-your-way URL.

* CoC now references Python Community Code of Conduct
2021-05-07 11:54:37 -05:00
Christian Clauss 4193b95db0 simplejson.JSONDecodeError may be raised on Py2 and Py3 2021-03-18 12:27:02 +01:00
Christian Clauss 06462a6e79 quickstart.rst: r.json() can raise JSONDecodeError on Py3
% `python2 -c "import requests ; requests.get('https://github.com').json()"`
% `python3 -c "import requests ; requests.get('https://github.com').json()"`
2021-03-18 10:06:14 +01: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
Ian Stapleton Cordasco 5035827ba4 Merge pull request #5670 from smarie/pr_proxy_conf_helper_and_doc
Proxy related doc updates
2020-12-04 13:38:17 -06:00
Kaartic Sivaraam d0359c9460 Fix broken link 2020-11-28 12:21:02 -06: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
Mathieu Pichette ba543713d3 Respect the NETRC environment variable 2020-10-31 21:01:30 -07: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
Sagar Giri 2a7832b5b0 Update index.rst
Update misleading text about python support
2020-08-25 17:50:13 -07:00
Nate Prewitt 48237afd9d updating doc links and formatting 2020-08-18 15:13:59 -07:00
Seth Michael Larson 0b01355870 Pin more helpful links to sidebar 2020-08-18 15:13:59 -07:00
Seth Michael Larson 43ed689d97 Trim release section, add back Twitter support 2020-08-18 15:13:59 -07:00
Seth Michael Larson 551a0bf0df Recommend Pip, remove todo/philo docs, pare down support avenues 2020-08-18 15:13:59 -07:00
Seth Michael Larson 0830062100 Remove images, analytics, 'keep up to date' 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
Kartik Chugh 1ca1c52e69 Google App Engine (#5475)
* Continuity: Google App Engine
2020-06-17 13:09:34 -07:00
Nate Prewitt 9ea85109a5 fixing rst markup 2020-04-03 14:31:44 -07: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
Nate Prewitt 4fc7f4a255 Update disclosure contact info (#5369) 2020-02-27 12:05:07 -06: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
John Samuels ae0a497b0c Update link to pipenv in installation guide. 2020-02-17 21:47:34 +00:00
Nick Watts d5c4cac0f4 Fix intersphinx_mapping config for Python standard library 2020-01-25 18:19:22 -05:00
Nick Watts 7138d8b0e3 Change link for pip installation instructions 2020-01-25 12:09:10 -05:00
Sumana Harihareswara a9ee0eef5a Add Python 2 support entry in FAQ (#5303)
* Add Python 2 support entry in FAQ

Fixes: #5211

Signed-off-by: Sumana Harihareswara <sh@changeset.nyc>

* Adding Python 3 recommendation

Co-authored-by: Nate Prewitt <nate.prewitt@gmail.com>
2020-01-09 09:55:20 -08:00
Hugo f462eecf48 Update supported Python versions 2020-01-06 11:24:02 +02:00
Matthew Peveler 4a540ff5f1 Fix link to requests-threads on community/recommended 2019-10-30 16:15:13 -03:00
Sorin Sbarnea d2590ee46c Change documentation website to requests.readthedocs.io (#5236)
Fixes: #5212
2019-10-24 20:02:55 -07:00
Charles Reid 4cd95aa496 update translation links from http -> https (#5237) 2019-10-24 19:46:04 -07:00
kennethreitz 1a7d1406cb cleanups 2019-09-18 05:33:15 -04:00
kennethreitz 5090ba79ac Create .nojekyll 2019-09-18 02:39:15 -04:00
kennethreitz 3d968ff34d Update index.rst 2019-08-26 10:35:52 -04:00
kennethreitz b6b90f4d9b Update sidebarintro.html 2019-08-20 19:02:36 -04:00
kennethreitz 913adced21 Update sidebarlogo.html 2019-08-20 19:02:23 -04:00
Marijn Stapert 4070bcf1b9 Fix typo 2019-08-20 19:25:03 +02:00
kennethreitz b1d584e899 Update index.rst 2019-08-20 00:58:49 -04:00
kennethreitz d258b20eba Delete sponsors.rst 2019-08-20 00:57:00 -04:00
kennethreitz e2fce5e60c Update index.rst 2019-08-20 00:56:45 -04:00
kennethreitz 72ca1b7e31 Update index.rst 2019-08-20 00:55:57 -04:00