MCPcopy Create free account
hub / github.com/EasyIME/PIME / HTTP1ConnectionParameters

Class HTTP1ConnectionParameters

python/python3/tornado/http1connection.py:71–101  ·  view source on GitHub ↗

Parameters for `.HTTP1Connection` and `.HTTP1ServerConnection`.

Source from the content-addressed store, hash-verified

69
70
71class HTTP1ConnectionParameters(object):
72 """Parameters for `.HTTP1Connection` and `.HTTP1ServerConnection`."""
73
74 def __init__(
75 self,
76 no_keep_alive: bool = False,
77 chunk_size: Optional[int] = None,
78 max_header_size: Optional[int] = None,
79 header_timeout: Optional[float] = None,
80 max_body_size: Optional[int] = None,
81 body_timeout: Optional[float] = None,
82 decompress: bool = False,
83 ) -> None:
84 """
85 :arg bool no_keep_alive: If true, always close the connection after
86 one request.
87 :arg int chunk_size: how much data to read into memory at once
88 :arg int max_header_size: maximum amount of data for HTTP headers
89 :arg float header_timeout: how long to wait for all headers (seconds)
90 :arg int max_body_size: maximum amount of data for body
91 :arg float body_timeout: how long to wait while reading body (seconds)
92 :arg bool decompress: if true, decode incoming
93 ``Content-Encoding: gzip``
94 """
95 self.no_keep_alive = no_keep_alive
96 self.chunk_size = chunk_size or 65536
97 self.max_header_size = max_header_size or 65536
98 self.header_timeout = header_timeout
99 self.max_body_size = max_body_size
100 self.body_timeout = body_timeout
101 self.decompress = decompress
102
103
104class HTTP1Connection(httputil.HTTPConnection):

Callers 4

initializeMethod · 0.90
_create_connectionMethod · 0.90
__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected