Commit Graph

969 Commits

Author SHA1 Message Date
kennethreitz 6a74c70a3a merge 2018-01-20 09:02:15 -05:00
kennethreitz 599a8f11f8 sidebar 2018-01-20 09:01:50 -05:00
Никита Конин 0813c865ee Fix broken link to Certifi 2018-01-18 20:14:33 +03: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
Cory Benfield c2507013ab Merge branch 'master' into document-status_codes 2017-11-22 20:41:46 +00:00
Zane Bitter 19919b44c4 Add documentation for available status codes
There was no way to determine what actual names were available outside
of looking at the source code. They were not listed in the documentation
or accessible through the interactive help.

In addition, doing `pydoc requests.status_codes` displayed some pretty
unhelpful information - the utf-8 encoding string was included in the
module name, there was no description, and internal variables used for
initialisation leaked into the module scope:

    DATA
        code = 511
        codes = <lookup 'status_codes'>
        title = 'network_authentication'
        titles = ('network_authentication_required', 'network_auth', ...

This change prevents the internal variables from leaking, adds a
docstring (which has the side-effect of correcting the module name), and
appends information on the allowed status code names to the docstring
when the module is initialised.

The improved module documentation is then used in the API documentation
to provide another easy reference to the complete list of status codes.
2017-11-21 16:11:34 -05:00
Daniel Roseman 39446def39 Clarify behaviour of json parameter.
`json` is ignored if `data` or `files` is not empty.
2017-11-21 13:40:59 +00:00
Dave Shawley 7cc3d8dc6a docs/quickstart: clarify raw response reading. 2017-11-17 16:37:08 -05:00
Tal Einat 7f08ad3b6c Corrent HTTP -> HTML in quickstart doc 2017-11-16 09:59:00 +02: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 0eb9a4c161 stickers
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-09-19 13:23:15 -04:00
kennethreitz fdb9b753b4 Update authors.rst 2017-09-05 11:31:16 -04:00
kennethreitz 4bda7b66e7 Update updates.rst 2017-09-04 16:21:57 -04:00
kennethreitz 068d8863d1 Update support.rst 2017-09-04 16:21:04 -04:00
kennethreitz c49f3643ae Update release-process.rst 2017-09-04 16:20:03 -04:00
kennethreitz 328cff252d Update out-there.rst 2017-09-04 16:19:36 -04:00
kennethreitz c57bd07a34 Update faq.rst 2017-09-04 16:19:01 -04:00
kennethreitz 0d82afa0c3 Update recommended.rst 2017-09-04 16:18:00 -04:00
kennethreitz 18e37c9368 Update todo.rst 2017-09-04 16:14:48 -04:00
kennethreitz 389da34fc9 Update philosophy.rst 2017-09-04 16:14:07 -04:00
kennethreitz 8ef20d5c36 Update contributing.rst 2017-09-04 16:13:08 -04:00
kennethreitz e63d481a7a Update authors.rst 2017-09-04 16:12:38 -04:00
kennethreitz f3eeb38542 Update vulnerabilities.rst 2017-09-04 16:11:52 -04:00
kennethreitz afaaae185c Update authentication.rst 2017-09-04 16:10:49 -04:00
kennethreitz 8af65a1eca Update quickstart.rst 2017-09-04 16:09:51 -04:00
kennethreitz c04b044b30 Update advanced.rst 2017-09-04 16:09:08 -04:00
kennethreitz 530198e0c0 Update install.rst 2017-09-04 16:08:22 -04:00
kennethreitz 8c57515696 Update intro.rst 2017-09-04 16:05:57 -04:00
kennethreitz 175452a6b6 Update index.rst 2017-09-04 16:04:07 -04:00
kennethreitz e35c829b59 Update index.rst 2017-09-04 16:03:49 -04:00
kennethreitz 1ad51b0a41 Update index.rst 2017-09-04 15:55:53 -04:00
kennethreitz 8be8105c42 Update advanced.rst 2017-09-04 15:53:26 -04:00
kennethreitz 49ec082a77 Update recommended.rst 2017-09-04 15:50:38 -04:00
kennethreitz 0488c640e2 Update index.rst 2017-09-04 15:46:47 -04:00
kennethreitz 8371b56d0f Delete extensions.rst 2017-09-04 15:46:24 -04:00
kennethreitz 830c18e4f9 Update index.rst 2017-09-04 15:45:28 -04:00
kennethreitz 2c438cacd1 Create extensions.rst 2017-09-04 15:44:57 -04:00
kennethreitz 9c8ae76928 Update index.rst 2017-09-04 15:40:02 -04:00
kennethreitz b9638ec7be taste 2017-09-01 13:10:52 -04:00
kennethreitz 940c1246e0 taste 2017-09-01 13:10:29 -04:00
kennethreitz e0e5b2e3aa Update philosophy.rst 2017-08-29 16:16:52 -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
kennethreitz 369be8afd0 pretty little note
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-08-28 02:01:36 -04:00
kennethreitz 572d2f4534 Python 2 Death Sentence™
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
2017-08-28 01:50:35 -04:00
kennethreitz 7e20b9193a Update index.rst 2017-08-28 01:33:45 -04:00
kennethreitz ad1aff52a0 Update index.rst 2017-08-28 01:33:32 -04:00