|
25 | 25 | v |
26 | 26 | Unread-response [Response-headers-read] |
27 | 27 | |\____________________ |
28 | | - | \ |
29 | | - | response.read() | putrequest() |
30 | | - v v |
31 | | - Idle Req-started-unread-response |
32 | | - _______/| |
33 | | - / | |
34 | | - response.read() | | ( putheader() )* endheaders() |
35 | | - v v |
36 | | - Request-started Req-sent-unread-response |
37 | | - | |
38 | | - | response.read() |
39 | | - v |
40 | | - Request-sent |
| 28 | + | | |
| 29 | + | response.read() | putrequest() |
| 30 | + v v |
| 31 | + Idle Req-started-unread-response |
| 32 | + ______/| |
| 33 | + / | |
| 34 | + response.read() | | ( putheader() )* endheaders() |
| 35 | + v v |
| 36 | + Request-started Req-sent-unread-response |
| 37 | + | |
| 38 | + | response.read() |
| 39 | + v |
| 40 | + Request-sent |
41 | 41 |
|
42 | 42 | This diagram presents the following rules: |
43 | 43 | -- a second request may not be started until {response-headers-read} |
@@ -566,7 +566,7 @@ def makefile(self, mode, bufsize=None): |
566 | 566 | interface of a real socket. It only supports modes 'r' and |
567 | 567 | 'rb' and the bufsize argument is ignored. |
568 | 568 |
|
569 | | - The returned object contains *all* of the file data |
| 569 | + The returned object contains *all* of the file data |
570 | 570 | """ |
571 | 571 | if mode != 'r' and mode != 'rb': |
572 | 572 | raise UnimplementedFileMode() |
@@ -719,11 +719,11 @@ class HTTPS(HTTP): |
719 | 719 |
|
720 | 720 | Python 1.5.2 did not have an HTTPS class, but it defined an |
721 | 721 | interface for sending http requests that is also useful for |
722 | | - https. |
| 722 | + https. |
723 | 723 | """ |
724 | 724 |
|
725 | 725 | _connection_class = HTTPSConnection |
726 | | - |
| 726 | + |
727 | 727 |
|
728 | 728 | class HTTPException(Exception): |
729 | 729 | pass |
|
0 commit comments