File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 15
15
16
16
class HTTPHeaders :
17
17
"""
18
- A dict-like object for storing HTTP headers.
18
+ A dict-like class for storing HTTP headers.
19
19
20
20
Allows access to headers using **case insensitive** names.
21
21
Original file line number Diff line number Diff line change @@ -47,7 +47,11 @@ class HTTPRequest:
47
47
"""
48
48
49
49
raw_request : bytes
50
- """Raw bytes passed to the constructor."""
50
+ """
51
+ Raw 'bytes' passed to the constructor and body 'bytes' received later.
52
+
53
+ Should **not** be modified directly.
54
+ """
51
55
52
56
def __init__ (self , raw_request : bytes = None ) -> None :
53
57
self .raw_request = raw_request
Original file line number Diff line number Diff line change @@ -211,9 +211,10 @@ def request_buffer_size(self, value: int) -> None:
211
211
def socket_timeout (self ) -> int :
212
212
"""
213
213
Timeout after which the socket will stop waiting for more incoming data.
214
- When exceeded, raises `OSError` with `errno.ETIMEDOUT`.
215
214
216
- Default timeout is 0, which means socket is in non-blocking mode.
215
+ Must be set to positive integer or float. Default is 1 second.
216
+
217
+ When exceeded, raises `OSError` with `errno.ETIMEDOUT`.
217
218
218
219
Example::
219
220
You can’t perform that action at this time.
0 commit comments