STABLE.
Bases: SimpleHTTPServer.SimpleHTTPRequestHandler
RequestHandler class that integrates with Glib mainloop. It writes the specified file to the client in chunks, returning control to the mainloop between chunks.
Serve a GET request.
Close the sockets when we’re done, not before
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.
** [dcbw] modified to send Content-disposition filename too
Bases: SocketServer.TCPServer
GlibTCPServer
Integrate socket accept into glib mainloop.
Called to clean up an individual request.
Called to shutdown and close an individual request.
Bases: gi.overrides.GObject.Object
Grabs a URL in chunks, returning to the mainloop after each chunk