MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / set

Method set

tools/python-3.11.9-amd64/Lib/http/cookies.py:349–358  ·  view source on GitHub ↗
(self, key, val, coded_val)

Source from the content-addressed store, hash-verified

347 return K.lower() in self._reserved
348
349 def set(self, key, val, coded_val):
350 if key.lower() in self._reserved:
351 raise CookieError('Attempt to set a reserved key %r' % (key,))
352 if not _is_legal_key(key):
353 raise CookieError('Illegal key %r' % (key,))
354
355 # It's a good key, so save it.
356 self._key = key
357 self._value = val
358 self._coded_value = coded_val
359
360 def __getstate__(self):
361 return {

Callers 1

__setMethod · 0.45

Calls 2

CookieErrorClass · 0.85
lowerMethod · 0.45

Tested by

no test coverage detected