SimpleHTTPServer.SimpleHTTPRequestHandler.send_head¶
-
SimpleHTTPRequestHandler.
send_head
()[source]¶ Common code for GET and HEAD commands.
This sends the response code and MIME headers.
Return value is either a file object (which has to be copied to the outputfile by the caller unless the command was HEAD, and must be closed by the caller under all circumstances), or None, in which case the caller has nothing further to do.