PyDocs

Nav

Internet Protocols and Support

HTTPResponse.info

http.client

method of HTTPResponse (source) Deprecated 3.9not WASI
  • HTTPResponse.info()
Deprecated since 3.9. Deprecated in favor of headers.
Returns an instance of the class mimetools.Message containing
meta-information associated with the URL.

When the method is HTTP, these headers are those returned by
the server at the head of the retrieved HTML page (including
Content-Length and Content-Type).

When the method is FTP, a Content-Length header will be
present if (as is now usual) the server passed back a file
length in response to the FTP retrieval request. A
Content-Type header will be present if the MIME type can be
guessed.

When the method is local-file, returned headers will include
a Date representing the file's last-modified time, a
Content-Length giving file size, and a Content-Type
containing a guess at the file's type. See also the
description of the mimetools module.
0 Examples
No examples for http.client/HTTPResponse.info.
See Also
No see-alsos for http.client/HTTPResponse.info
0 Notes
No notes for HTTPResponse.info