MCPcopy Index your code
hub / github.com/python/cpython / info

Method info

Lib/http/client.py:786–807  ·  view source on GitHub ↗

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).

(self)

Source from the content-addressed store, hash-verified

784 # For compatibility with old-style urllib responses.
785
786 def info(self):
787 '''Returns an instance of the class mimetools.Message containing
788 meta-information associated with the URL.
789
790 When the method is HTTP, these headers are those returned by
791 the server at the head of the retrieved HTML page (including
792 Content-Length and Content-Type).
793
794 When the method is FTP, a Content-Length header will be
795 present if (as is now usual) the server passed back a file
796 length in response to the FTP retrieval request. A
797 Content-Type header will be present if the MIME type can be
798 guessed.
799
800 When the method is local-file, returned headers will include
801 a Date representing the file's last-modified time, a
802 Content-Length giving file size, and a Content-Type
803 containing a guess at the file's type. See also the
804 description of the mimetools module.
805
806 '''
807 return self.headers
808
809 def geturl(self):
810 '''Return the real URL of the page.

Callers 2

make_cookiesMethod · 0.45
extract_cookiesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected