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)
| 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. |
no outgoing calls
no test coverage detected