Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(69409)

Delta Between Two Patch Sets: Doc/library/http.client.rst

Issue 22417: PEP 476: verify HTTPS certificates by default
Left Patch Set: Created 4 years, 8 months ago
Right Patch Set: Created 4 years, 7 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | Doc/library/urllib.request.rst » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 :mod:`http.client` --- HTTP protocol client 1 :mod:`http.client` --- HTTP protocol client
2 =========================================== 2 ===========================================
3 3
4 .. module:: http.client 4 .. module:: http.client
5 :synopsis: HTTP and HTTPS protocol client (requires sockets). 5 :synopsis: HTTP and HTTPS protocol client (requires sockets).
6 6
7 7
8 .. index:: 8 .. index::
9 pair: HTTP; protocol 9 pair: HTTP; protocol
10 single: HTTP; http.client (standard module) 10 single: HTTP; http.client (standard module)
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 *source_address*, *context* and *check_hostname* were added. 84 *source_address*, *context* and *check_hostname* were added.
85 85
86 .. versionchanged:: 3.2 86 .. versionchanged:: 3.2
87 This class now supports HTTPS virtual hosts if possible (that is, 87 This class now supports HTTPS virtual hosts if possible (that is,
88 if :data:`ssl.HAS_SNI` is true). 88 if :data:`ssl.HAS_SNI` is true).
89 89
90 .. versionchanged:: 3.4 90 .. versionchanged:: 3.4
91 The *strict* parameter was removed. HTTP 0.9-style "Simple Responses" are 91 The *strict* parameter was removed. HTTP 0.9-style "Simple Responses" are
92 no longer supported. 92 no longer supported.
93 93
94 .. versionchanged:: 3.5 94 .. versionchanged:: 3.4.3
95 This class now uses :func:`ssl._create_default_https_context` if no 95 This class now performs all the necessary certificate and hostname checks
96 context is explicitly provided. This means that it performs all the 96 by default. To revert to the previous, unverified, behavior
97 necessary certificate and hostname checks by default. To revert to the 97 :func:`ssl._create_unverified_context` can be passed to the *context*
98 previous, unverified, behavior :func:`ssl._create_unverified_context` can 98 parameter.
99 be passed.
100 99
101 100
102 .. class:: HTTPResponse(sock, debuglevel=0, method=None, url=None) 101 .. class:: HTTPResponse(sock, debuglevel=0, method=None, url=None)
103 102
104 Class whose instances are returned upon successful connection. Not 103 Class whose instances are returned upon successful connection. Not
105 instantiated directly by user. 104 instantiated directly by user.
106 105
107 .. versionchanged:: 3.4 106 .. versionchanged:: 3.4
108 The *strict* parameter was removed. HTTP 0.9 style "Simple Responses" are 107 The *strict* parameter was removed. HTTP 0.9 style "Simple Responses" are
109 no longer supported. 108 no longer supported.
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 672
674 .. _httpmessage-objects: 673 .. _httpmessage-objects:
675 674
676 HTTPMessage Objects 675 HTTPMessage Objects
677 ------------------- 676 -------------------
678 677
679 An :class:`http.client.HTTPMessage` instance holds the headers from an HTTP 678 An :class:`http.client.HTTPMessage` instance holds the headers from an HTTP
680 response. It is implemented using the :class:`email.message.Message` class. 679 response. It is implemented using the :class:`email.message.Message` class.
681 680
682 .. XXX Define the methods that clients can depend upon between versions. 681 .. XXX Define the methods that clients can depend upon between versions.
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+