![]() Results in no data read from the connection, indicating that the remote end Raisedīy HTTPConnection.getresponse() when the attempt to read the response RemoteDisconnected ¶Ī subclass of ConnectionResetError and BadStatusLine. Is received in the HTTP protocol from the server. LineTooLong ¶Ī subclass of HTTPException. BadStatusLine ¶Ī subclass of HTTPException. ResponseNotReady ¶Ī subclass of ImproperConnectionState. CannotSendHeader ¶Ī subclass of ImproperConnectionState. CannotSendRequest ¶Ī subclass of ImproperConnectionState. ImproperConnectionState ¶Ī subclass of HTTPException. IncompleteRead ¶Ī subclass of HTTPException. UnimplementedFileMode ¶Ī subclass of HTTPException. UnknownTransferEncoding ¶Ī subclass of HTTPException. UnknownProtocol ¶Ī subclass of HTTPException. InvalidURL ¶Ī subclass of HTTPException, raised if a port is given and is either ![]() NotConnected ¶Ī subclass of HTTPException. The base class of the other exceptions in this module. The following exceptions are raised as appropriate: exception http.client. Read these field lines, so the first line should already be consumed Parse_headers() does not parse the start-line of a HTTP message The optional blocksize parameter sets the buffer size in bytes forįor example, the following calls all create instances that connect to the server To use as the source address the HTTP connection is made from. The optional source_address parameter may be a tuple of a (host, port) (if it is not given, the global default timeout setting is used). ![]() Operations (like connection attempts) will timeout after that many seconds If the optional timeout parameter is given, blocking String if it has the form host:port, else the default HTTP port (80) is If no port number is passed, the port is extracted from the host It should be instantiated by passing it a host and optional port HTTPConnection ( host, port=None, source_address=None, blocksize=8192 ) ¶Īn HTTPConnection instance represents one transaction with an HTTP The module provides the following classes: class http.client. HTTPS support is only available if Python was compiled with SSL support ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |