Package schrodinger :: Package application :: Package glide :: Module http_server :: Class GlideHTTPHandler
[hide private]
[frames] | no frames]

Class GlideHTTPHandler

SocketServer.BaseRequestHandler --+        
                                  |        
  SocketServer.StreamRequestHandler --+    
                                      |    
  BaseHTTPServer.BaseHTTPRequestHandler --+
                                          |
                                         GlideHTTPHandler

This class, derived from BaseHTTPRequestHandler, implements the do_GET and do_POST methods. Unlike the parent class, this handler does not "finish" immediately after calling do_GET/do_POST, but waits until glide_finish() is called.

Properties:

* glide_data: a dictionary containing the posted form data. * glide_stop: a boolean, set to True if the client asked us to stop. * glide_form: the form to send out when getting "/".

Nested Classes [hide private]

Inherited from BaseHTTPServer.BaseHTTPRequestHandler: MessageClass

Instance Methods [hide private]
 
setup(self)
 
do_POST(self)
 
do_GET(self)
 
glide_send_response(self, ctype, body)
Convenience method to send the response line, content-type header, and body in just one call.
 
finish(self)
 
glide_finish(self)
Finish the handler by calling the finish() method from the parent class.

Inherited from BaseHTTPServer.BaseHTTPRequestHandler: address_string, date_time_string, end_headers, handle, handle_one_request, log_date_time_string, log_error, log_message, log_request, parse_request, send_error, send_header, send_response, version_string

Inherited from SocketServer.BaseRequestHandler: __init__

Class Variables [hide private]

Inherited from BaseHTTPServer.BaseHTTPRequestHandler: default_request_version, error_content_type, error_message_format, monthname, protocol_version, responses, server_version, sys_version, weekdayname

Inherited from SocketServer.StreamRequestHandler: disable_nagle_algorithm, rbufsize, timeout, wbufsize

Method Details [hide private]

setup(self)

 
Overrides: SocketServer.BaseRequestHandler.setup

finish(self)

 
Overrides: SocketServer.BaseRequestHandler.finish

glide_finish(self)

 

Finish the handler by calling the finish() method from the parent class. Among other things, this closes the connection.