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
Scrapy 1.3 Documentation['text/html; charset=UTF-8'], 'Date': ['Thu, 08 Dec 2016 16:21:19 GMT'], 'Server': ['snooserv'], 'Set-Cookie': ['loid=KqNLou0V9SKMX4qb4n; Domain=reddit.com; Max-Age=63071999; Path=/; ˓→ expires=Sat, 08-Dec-2018 name. For example, this call will give you all cookies in the headers: response.headers.getlist('Set-Cookie') body The body of this Response. Keep in mind that Response.body is always a bytes object. If log all cookies sent in requests (ie. Cookie header) and all cookies received in responses (ie. Set-Cookie header). Here’s an example of a log with COOKIES_DEBUG enabled: 2011-04-06 14:35:10-0300 [scrapy0 码力 | 272 页 | 1.11 MB | 1 年前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
共 131 条
- 1
- 2
- 3
- 4
- 5
- 6
- 14













