Package SPyRO :: Module SPyRO :: Class ProtocolHTTPShared
[show private | hide private]
[frames | no frames]

Class ProtocolHTTPShared

TransportProtocolMixIn --+
                         |
                        ProtocolHTTPShared


An HTTP Server to manage SPyRO requests, attached to another HTTP server
Method Summary
  __init__(self)
Perform connection using the opened socket |reqsocket|
  __del__(self)
  close(self)
Close the server
  get_request(self, peerconn)
Read the request and return it as a Request object instance
  send_data(self, data, peerconn)
Common code between send_result and send_error
  send_error(self, errormsg, peerconn, code)
Send an error (errormsg is an error string)
  send_result(self, msg, peerconn)
Encode and send the message (msg is a Response object)
    Inherited from TransportProtocolMixIn
  _choose_format(self, format, request)
  _load_request(self, x)
  _load_result(self, x)

Method Details

__init__(self)
(Constructor)

Perform connection using the opened socket |reqsocket|

close(self)

Close the server

get_request(self, peerconn)

Read the request and return it as a Request object instance

send_data(self, data, peerconn)

Common code between send_result and send_error

send_error(self, errormsg, peerconn, code=None)

Send an error (errormsg is an error string)

send_result(self, msg, peerconn)

Encode and send the message (msg is a Response object)

Generated by Epydoc 2.1 on Sat Oct 14 11:50:52 2006 http://epydoc.sf.net