def value_encode(self, val): strval = str(val) return strval, _quote(strval)
def send_cookies(self, connection): if self.cookies: for k, v in self.cookies.iteritems(): connection.putheader( "Cookie", ";".join(["%s=%s" % (k, _quote(v))]))
def value_encode(self, val): strval = str(val) return strval, _quote( strval )
def send_cookies(self, connection): if self.cookies: for k, v in self.cookies.iteritems(): connection.putheader("Cookie", ";".join(["%s=%s" % (k, _quote(v))]))