Tornado 6.5 Documentationto http.cookies.Morsel directly. See https://developer.mozilla.org/ en-US/docs/Web/HTTP/Headers/Set-Cookie for more information. expires may be a numeric timestamp as returned by time.time, a time tuple 93Tornado Documentation, Release 6.5.1 >>> h.add("Set-Cookie", "A=B") >>> h.add("Set-Cookie", "C=D") >>> h["set-cookie"] 'A=B,C=D' >>> h.get_list("set-cookie") ['A=B', 'C=D'] >>> for (k,v) in sorted(h.get_all()): get_all()): ... print('%s: %s' % (k,v)) ... Content-Type: text/html Set-Cookie: A=B Set-Cookie: C=D add(name: str, value: str, *, _chars_are_bytes: bool = True) → None Adds a new value for the given key0 码力 | 272 页 | 1.12 MB | 3 月前3
Tornado 6.5 Documentationhtml#http.cookies.Morsel] directly. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie for more information. expires may be a numeric timestamp as returned by time.time [https://docs h["Content-Type"] 'text/html' >>> h.add("Set-Cookie", "A=B") >>> h.add("Set-Cookie", "C=D") >>> h["set-cookie"] 'A=B,C=D' >>> h.get_list("set-cookie") ['A=B', 'C=D'] >>> for (k,v) in sorted(h sorted(h.get_all()): ... print('%s: %s' % (k,v)) ...Content-Type: text/html Set-Cookie: A=B Set-Cookie: C=D add(name: str [https://docs.python.org/3/library/stdtypes.html#str], value: str [https://docs0 码力 | 437 页 | 405.14 KB | 3 月前3
共 2 条
- 1
相关搜索词













