Tornado 6.4 Documentation
to 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 >>> 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.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) → None Adds a new value for the given key. get_list(name: str) → List[str]0 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.4 Documentation
to 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 >>> 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.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) → None Adds a new value for the given key. get_list(name: str) → List[str]0 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.4 Documentation
to 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 >>> 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.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) → None Adds a new value for the given key. get_list(name: str) → List[str]0 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.3 Documentation
to 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 >>> 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.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) → None Adds a new value for the given key. get_list(name: str) → List[str]0 码力 | 264 页 | 1.06 MB | 1 年前3
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 4.5 Documentation
>>> 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.get_all()): get_all()): ... print('%s: %s' % (k,v)) ... Content-Type: text/html Set-Cookie: A=B Set-Cookie: C=D add(name, value) Adds a new value for the given key. get_list(name) Returns all values for the given0 码力 | 333 页 | 322.34 KB | 1 年前3
Tornado 6.1 Documentation
>>> 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.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) → None Adds a new value for the given key. get_list(name: str) → List[str]0 码力 | 245 页 | 904.24 KB | 1 年前3
Tornado 4.5 Documentation
>>> h.add("Set-Cookie", "A=B") >>> h.add("Set-Cookie", "C=D") >>> h["set-cookie"] 'A=B,C=D' 80 Chapter 4. Documentation Tornado Documentation, Release 4.5.3 >>> h.get_list("set-cookie") ['A=B', 'C=D'] (k,v) in sorted(h.get_all()): ... print('%s: %s' % (k,v)) ... Content-Type: text/html Set-Cookie: A=B Set-Cookie: C=D add(name, value) Adds a new value for the given key. get_list(name) Returns all0 码力 | 222 页 | 833.04 KB | 1 年前3
Tornado 5.1 Documentation
keys()) ['Content-Type'] >>> h["Content-Type"] 'text/html' >>> h.add("Set-Cookie", "A=B") >>> h.add("Set-Cookie", "C=D") >>> h["set-cookie"] 'A=B,C=D' (continues on next page) 5.3. HTTP servers and clients previous page) >>> h.get_list("set-cookie") ['A=B', 'C=D'] >>> for (k,v) in sorted(h.get_all()): ... print('%s: %s' % (k,v)) ... Content-Type: text/html Set-Cookie: A=B Set-Cookie: C=D add(name, value) Adds0 码力 | 243 页 | 895.80 KB | 1 年前3
Tornado 6.0 Documentation
keys()) ['Content-Type'] >>> h["Content-Type"] 'text/html' >>> h.add("Set-Cookie", "A=B") >>> h.add("Set-Cookie", "C=D") >>> h["set-cookie"] (continues on next page) 88 Chapter 6. Documentation Tornado 'A=B,C=D' >>> h.get_list("set-cookie") ['A=B', 'C=D'] >>> for (k,v) in sorted(h.get_all()): ... print('%s: %s' % (k,v)) ... Content-Type: text/html Set-Cookie: A=B Set-Cookie: C=D add(name: str, value:0 码力 | 245 页 | 885.76 KB | 1 年前3
共 20 条
- 1
- 2













