![]() ![]() class HTTPSConnection ( HTTPConnection ) : if sys. def send ( self, data : _DataType ) - > None. def endheaders ( self, message_body : Optional =. def putheader ( self, header : str, * argument : str ) - > None. def putrequest ( self, request : str, selector : str, skip_host : bool =. def set_tunnel ( self, host : str, port : Optional =. ![]() def set_debuglevel ( self, level : int ) - > None. def getresponse ( self ) - > HTTPResponse. def request ( self, method : str, url : str, body : Optional =. else : def _init_ ( self, host : str, port : Optional =. version_info > = ( 3, 4 ) : def _init_ ( self, host : str, port : Optional =. def _exit_ ( self, exc_type : Optional, exc_val : Optional, exc_tb : Optional ) - > bool. def _enter_ ( self ) - > ' HTTPResponse '. def getheader ( self, name : str, default : _T ) - > Union. def getheader ( self, name : str ) - > Optional. version_info > = ( 3, 3 ) : def readinto ( self, b : bytearray ) - > int. # type: str def read ( self, amt : Optional =. def readinto ( self, b : bytearray ) - > int. # type: str def _init_ ( self, sock : socket, debuglevel : int =. version_info > = ( 3, 5 ) : class HTTPResponse ( io. # type: int NETWORK_AUTHENTICATION_REQUIRED =. # type: int HTTP_VERSION_NOT_SUPPORTED =. # type: int REQUEST_HEADER_FIELDS_TOO_LARGE =. # type: int REQUESTED_RANGE_NOT_SATISFIABLE =. # type: int PROXY_AUTHENTICATION_REQUIRED =. # type: int NON_AUTHORITATIVE_INFORMATION =. message import io from socket import socket import sys import ssl import types _DataType = Union, Iterable, str ] _T = TypeVar ( ' _T ' ) HTTP_PORT =. # Stubs for http.client (Python 3.4) from typing import ( Any, Dict, IO, Iterable, List, Iterator, Mapping, Optional, Tuple, TypeVar, Union, overload, ) import email. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |