Return a decoded value from a string representation. Return value can
be any type. This method does nothing in BaseCookie -- it exists
so it can be overridden.
Return an encoded value. val can be any type, but return value
must be a string. This method does nothing in BaseCookie -- it exists
so it can be overridden
In general, it should be the case that value_encode() and
value_decode() are inverses on the range of value_decode.
Return a string representation suitable to be sent as HTTP headers.
attrs and header are sent to each Morsel's
output() method. sep is used to join the headers
together, and is by default a newline.