Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(12)

Side by Side Diff: Doc/library/http.cookies.rst

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Doc/library/http.client.rst ('k') | Doc/library/io.rst » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 :mod:`http.cookies` --- HTTP state management 1 :mod:`http.cookies` --- HTTP state management
2 ============================================= 2 =============================================
3 3
4 .. module:: http.cookies 4 .. module:: http.cookies
5 :synopsis: Support for HTTP state management (cookies). 5 :synopsis: Support for HTTP state management (cookies).
6 .. moduleauthor:: Timothy O'Malley <timo@alum.mit.edu> 6 .. moduleauthor:: Timothy O'Malley <timo@alum.mit.edu>
7 .. sectionauthor:: Moshe Zadka <moshez@zadka.site.co.il> 7 .. sectionauthor:: Moshe Zadka <moshez@zadka.site.co.il>
8 8
9 **Source code:** :source:`Lib/http/cookies.py` 9 **Source code:** :source:`Lib/http/cookies.py`
10 10
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 The encoded value of the cookie --- this is what should be sent. 145 The encoded value of the cookie --- this is what should be sent.
146 146
147 147
148 .. attribute:: Morsel.key 148 .. attribute:: Morsel.key
149 149
150 The name of the cookie. 150 The name of the cookie.
151 151
152 152
153 .. method:: Morsel.set(key, value, coded_value) 153 .. method:: Morsel.set(key, value, coded_value)
154 154
155 Set the *key*, *value* and *coded_value* attributes. 155 Set the *key*, *value* and *coded_value* members.
156 156
157 157
158 .. method:: Morsel.isReservedKey(K) 158 .. method:: Morsel.isReservedKey(K)
159 159
160 Whether *K* is a member of the set of keys of a :class:`Morsel`. 160 Whether *K* is a member of the set of keys of a :class:`Morsel`.
161 161
162 162
163 .. method:: Morsel.output(attrs=None, header='Set-Cookie:') 163 .. method:: Morsel.output(attrs=None, header='Set-Cookie:')
164 164
165 Return a string representation of the Morsel, suitable to be sent as an HTTP 165 Return a string representation of the Morsel, suitable to be sent as an HTTP
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 >>> C = cookies.SimpleCookie() 232 >>> C = cookies.SimpleCookie()
233 >>> C["number"] = 7 # equivalent to C["number"] = str(7) 233 >>> C["number"] = 7 # equivalent to C["number"] = str(7)
234 >>> C["string"] = "seven" 234 >>> C["string"] = "seven"
235 >>> C["number"].value 235 >>> C["number"].value
236 '7' 236 '7'
237 >>> C["string"].value 237 >>> C["string"].value
238 'seven' 238 'seven'
239 >>> print(C) 239 >>> print(C)
240 Set-Cookie: number=7 240 Set-Cookie: number=7
241 Set-Cookie: string=seven 241 Set-Cookie: string=seven
OLDNEW
« no previous file with comments | « Doc/library/http.client.rst ('k') | Doc/library/io.rst » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+