Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
SerialCookie Class Reference
Inheritance diagram for SerialCookie:

Public Member Functions

def value_decode
 
def value_encode
 

Detailed Description

SerialCookie
SerialCookie supports arbitrary objects as cookie values. All
values are serialized (using cPickle) before being sent to the
client.  All incoming values are assumed to be valid Pickle
representations.  IF AN INCOMING VALUE IS NOT IN A VALID PICKLE
FORMAT, THEN AN EXCEPTION WILL BE RAISED.

Note: Large cookie values add overhead because they must be
retransmitted on every HTTP transaction.

Note: HTTP has a 2k limit on the size of a cookie.  This class
does not check for this limit, so be careful!!!

Definition at line 675 of file Cookie.py.

Member Function Documentation

def value_decode (   self,
  val 
)

Definition at line 689 of file Cookie.py.

References pickle.loads().

690  def value_decode(self, val):
691  # This could raise an exception!
return loads( _unquote(val) ), val
def value_encode (   self,
  val 
)

Definition at line 692 of file Cookie.py.

References pickle.dumps().

693  def value_encode(self, val):
694  return val, _quote( dumps(val) )
695 # end SerialCookie

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