def request(
self,
method: str,
url: str,
body: _TYPE_BODY | None = None,
headers: typing.Mapping[str, str] | None = None, # We know *at least* botocore is depending on the order of the # first 3 parameters so to be safe we only mark the later ones # as keyword-only to ensure we have space to extend.
*,
chunked: bool = False,
preload_content: bool = True,
decode_content: bool = True,
enforce_content_length: bool = True,
) -> None: ...
def getresponse(self) -> BaseHTTPResponse: ...
def close(self) -> None: ...
@property def is_closed(self) -> bool: """Whether the connection either is brand new or has been previously closed. If this property isTrue then both ``is_connected`` and ``has_connected_to_proxy``
properties must be False. """
@property def is_connected(self) -> bool: """Whether the connection is actively connected to any origin (proxy or target)"""
@property def has_connected_to_proxy(self) -> bool: """Whether the connection has successfully connected to its proxy.
This returns Falseif no proxy isin use. Used to determine whether
errors are coming from the proxy layer orfrom tunnelling to the target origin. """
class BaseHTTPSConnection(BaseHTTPConnection, Protocol):
default_port: typing.ClassVar[int]
default_socket_options: typing.ClassVar[_TYPE_SOCKET_OPTIONS]
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.