MCPcopy Index your code
hub / github.com/RustPython/RustPython / info

Method info

Lib/http/client.py:783–804  ·  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

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