MCPcopy Index your code
hub / github.com/RustPython/RustPython / output

Method output

Lib/http/cookies.py:502–511  ·  view source on GitHub ↗

Return a string suitable for HTTP.

(self, attrs=None, header="Set-Cookie:", sep="\015\012")

Source from the content-addressed store, hash-verified

500 self.__set(key, rval, cval)
501
502 def output(self, attrs=None, header="Set-Cookie:", sep="\015\012"):
503 """Return a string suitable for HTTP."""
504 result = []
505 items = sorted(self.items())
506 for key, value in items:
507 value_output = value.output(attrs, header)
508 if _has_control_character(value_output):
509 raise CookieError("Control characters are not allowed in cookies")
510 result.append(value_output)
511 return sep.join(result)
512
513 __str__ = output
514

Callers

nothing calls this directly

Calls 7

sortedFunction · 0.85
_has_control_characterFunction · 0.85
CookieErrorClass · 0.85
itemsMethod · 0.45
outputMethod · 0.45
appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected