Copernicus  2.0
 All Classes Namespaces Files Functions Variables
cpc.network.server_response.ServerResponse Class Reference
Inheritance diagram for cpc.network.server_response.ServerResponse:

Public Member Functions

def add
 
def append
 
def setFile
 
def clearAll
 
def render
 
def close
 

Public Attributes

 headers
 
 resp
 
 file
 
 mmap
 

Detailed Description

data structure for the command ser ver response format.

Member Function Documentation

def cpc.network.server_response.ServerResponse.add (   self,
  message,
  data = None,
  status = "OK" 
)
def cpc.network.server_response.ServerResponse.append (   self,
  otherResponse 
)
def cpc.network.server_response.ServerResponse.clearAll (   self)
def cpc.network.server_response.ServerResponse.close (   self)
def cpc.network.server_response.ServerResponse.render (   self)
returns the response in JSON format 
def cpc.network.server_response.ServerResponse.setFile (   self,
  file,
  contentTypeStr 
)
The contentTypeStr is a tuple when sent from request_handler (using
guess_type from mimetypes) and a bare string when called from commands,
so we check the type.

Member Data Documentation

cpc.network.server_response.ServerResponse.file
cpc.network.server_response.ServerResponse.headers
cpc.network.server_response.ServerResponse.mmap
cpc.network.server_response.ServerResponse.resp

The documentation for this class was generated from the following file: