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

Public Member Functions

def getCmd
 
def getJob
 
def getField
 
def getFlag
 
def setFlag
 
def getParam
 
def hasParam
 
def addField
 
def addFile
 
def getFile
 
def haveFile
 

Static Public Member Functions

def parseHeaders
 
def getFieldName
 
def isFile
 
def getBoundary
 
def getCRLF
 
def prepareRequest
 
def isMultiPart
 

Public Attributes

 msg
 
 headers
 
 params
 
 files
 
 session
 
 flags
 

Static Public Attributes

string CRLF = '\r\n'
 

Detailed Description

Server request object; contains all the fields as 'fields' (strings) or
   'files' (temporary files).

Member Function Documentation

def cpc.network.server_request.ServerRequest.addField (   self,
  fieldName,
  msg 
)
Add a field to a request.
def cpc.network.server_request.ServerRequest.addFile (   self,
  filename,
  fileObject 
)
Add an open file to a request.
def cpc.network.server_request.ServerRequest.getBoundary ( )
static
def cpc.network.server_request.ServerRequest.getCmd (   self)
def cpc.network.server_request.ServerRequest.getCRLF ( )
static
def cpc.network.server_request.ServerRequest.getField (   self,
  fieldName 
)
gets a property based on its fieldname
def cpc.network.server_request.ServerRequest.getFieldName (   header)
static
def cpc.network.server_request.ServerRequest.getFile (   self,
  fileName 
)
def cpc.network.server_request.ServerRequest.getFlag (   self,
  name 
)
gets a request-handler-defined property - or None.
def cpc.network.server_request.ServerRequest.getJob (   self)
def cpc.network.server_request.ServerRequest.getParam (   self,
  paramName 
)
gets a property based on its paramname
def cpc.network.server_request.ServerRequest.hasParam (   self,
  paramName 
)
Returns whether a property has been set
def cpc.network.server_request.ServerRequest.haveFile (   self,
  fileName 
)
def cpc.network.server_request.ServerRequest.isFile (   header)
static
def cpc.network.server_request.ServerRequest.isMultiPart (   contentType)
static
def cpc.network.server_request.ServerRequest.parseHeaders (   headerString)
static
def cpc.network.server_request.ServerRequest.prepareRequest (   fields = [],
  files = [],
  headers = None 
)
static
Prepares the HTTP request
returns:
 ServerRequest
def cpc.network.server_request.ServerRequest.setFlag (   self,
  name,
  value 
)
Sets a request-handler-defined property - allocating a dict if 
   it needs to.

Member Data Documentation

string cpc.network.server_request.ServerRequest.CRLF = '\r\n'
static
cpc.network.server_request.ServerRequest.files
cpc.network.server_request.ServerRequest.flags
cpc.network.server_request.ServerRequest.headers
cpc.network.server_request.ServerRequest.msg
cpc.network.server_request.ServerRequest.params
cpc.network.server_request.ServerRequest.session

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