eric6/Documentation/Source/eric6.E5Network.E5RFC6266.html

changeset 7273
391d6b7b1eff
parent 6942
2602857055c5
child 7989
a21d673a8f99
equal deleted inserted replaced
7272:1779dc278077 7273:391d6b7b1eff
16 16
17 a { color: #BA6D36; } 17 a { color: #BA6D36; }
18 18
19 </style> 19 </style>
20 </head> 20 </head>
21 <body><a NAME="top" ID="top"></a> 21 <body>
22 <a NAME="top" ID="top"></a>
22 <h1>eric6.E5Network.E5RFC6266</h1> 23 <h1>eric6.E5Network.E5RFC6266</h1>
24
23 <p> 25 <p>
24 Module implementing a Content-Disposition parser iaw. RFC 6266. 26 Module implementing a Content-Disposition parser iaw. RFC 6266.
25 </p> 27 </p>
26 <h3>Global Attributes</h3> 28 <h3>Global Attributes</h3>
29
27 <table> 30 <table>
28 <tr><td>None</td></tr> 31 <tr><td>None</td></tr>
29 </table> 32 </table>
30 <h3>Classes</h3> 33 <h3>Classes</h3>
31 <table> 34
35 <table>
36
32 <tr> 37 <tr>
33 <td><a href="#Charset">Charset</a></td> 38 <td><a href="#Charset">Charset</a></td>
34 <td>A charset (RFC5987, Section 3.2.1).</td> 39 <td>A charset (RFC5987, Section 3.2.1).</td>
35 </tr><tr> 40 </tr>
41 <tr>
36 <td><a href="#ContentDisposition">ContentDisposition</a></td> 42 <td><a href="#ContentDisposition">ContentDisposition</a></td>
37 <td>Records various indications and hints about content disposition.</td> 43 <td>Records various indications and hints about content disposition.</td>
38 </tr><tr> 44 </tr>
45 <tr>
39 <td><a href="#ContentDispositionValue">ContentDispositionValue</a></td> 46 <td><a href="#ContentDispositionValue">ContentDispositionValue</a></td>
40 <td>A complete Content-Disposition value (RFC 6266, Section 4.1).</td> 47 <td>A complete Content-Disposition value (RFC 6266, Section 4.1).</td>
41 </tr><tr> 48 </tr>
49 <tr>
42 <td><a href="#ContentDisposition_1">ContentDisposition</a></td> 50 <td><a href="#ContentDisposition_1">ContentDisposition</a></td>
43 <td>Records various indications and hints about content disposition.</td> 51 <td>Records various indications and hints about content disposition.</td>
44 </tr><tr> 52 </tr>
53 <tr>
45 <td><a href="#DispositionParm">DispositionParm</a></td> 54 <td><a href="#DispositionParm">DispositionParm</a></td>
46 <td>A parameter for the Disposition-Type header (RFC6266, Section 4.1).</td> 55 <td>A parameter for the Disposition-Type header (RFC6266, Section 4.1).</td>
47 </tr><tr> 56 </tr>
57 <tr>
48 <td><a href="#DispositionParmList">DispositionParmList</a></td> 58 <td><a href="#DispositionParmList">DispositionParmList</a></td>
49 <td>A list of disposition parameters (RFC6266, Section 4.1).</td> 59 <td>A list of disposition parameters (RFC6266, Section 4.1).</td>
50 </tr><tr> 60 </tr>
61 <tr>
51 <td><a href="#DispositionType">DispositionType</a></td> 62 <td><a href="#DispositionType">DispositionType</a></td>
52 <td>The disposition type (RFC6266, Section 4.1).</td> 63 <td>The disposition type (RFC6266, Section 4.1).</td>
53 </tr><tr> 64 </tr>
65 <tr>
54 <td><a href="#DuplicateParamError">DuplicateParamError</a></td> 66 <td><a href="#DuplicateParamError">DuplicateParamError</a></td>
55 <td>Exception raised when a parameter has been given twice.</td> 67 <td>Exception raised when a parameter has been given twice.</td>
56 </tr><tr> 68 </tr>
69 <tr>
57 <td><a href="#ExtDispositionParm">ExtDispositionParm</a></td> 70 <td><a href="#ExtDispositionParm">ExtDispositionParm</a></td>
58 <td>An extended parameter (RFC6266, Section 4.1).</td> 71 <td>An extended parameter (RFC6266, Section 4.1).</td>
59 </tr><tr> 72 </tr>
73 <tr>
60 <td><a href="#ExtToken">ExtToken</a></td> 74 <td><a href="#ExtToken">ExtToken</a></td>
61 <td>A token introducing an extended value (RFC 6266, Section 4.1).</td> 75 <td>A token introducing an extended value (RFC 6266, Section 4.1).</td>
62 </tr><tr> 76 </tr>
77 <tr>
63 <td><a href="#ExtValue">ExtValue</a></td> 78 <td><a href="#ExtValue">ExtValue</a></td>
64 <td>An ext-value of an attribute (RFC 5987, Section 3.2).</td> 79 <td>An ext-value of an attribute (RFC 5987, Section 3.2).</td>
65 </tr><tr> 80 </tr>
81 <tr>
66 <td><a href="#InvalidISO8859Error">InvalidISO8859Error</a></td> 82 <td><a href="#InvalidISO8859Error">InvalidISO8859Error</a></td>
67 <td>Exception raised when a byte is invalid in ISO-8859-1.</td> 83 <td>Exception raised when a byte is invalid in ISO-8859-1.</td>
68 </tr><tr> 84 </tr>
85 <tr>
69 <td><a href="#Language">Language</a></td> 86 <td><a href="#Language">Language</a></td>
70 <td>A language-tag (RFC 5646, Section 2.1).</td> 87 <td>A language-tag (RFC 5646, Section 2.1).</td>
71 </tr><tr> 88 </tr>
89 <tr>
72 <td><a href="#NoExtToken">NoExtToken</a></td> 90 <td><a href="#NoExtToken">NoExtToken</a></td>
73 <td>A token introducing a normal value (RFC 6266, Section 4.1).</td> 91 <td>A token introducing a normal value (RFC 6266, Section 4.1).</td>
74 </tr><tr> 92 </tr>
93 <tr>
75 <td><a href="#QuotedString">QuotedString</a></td> 94 <td><a href="#QuotedString">QuotedString</a></td>
76 <td>A quoted string (RFC 2616, Section 2.2).</td> 95 <td>A quoted string (RFC 2616, Section 2.2).</td>
77 </tr><tr> 96 </tr>
97 <tr>
78 <td><a href="#Token">Token</a></td> 98 <td><a href="#Token">Token</a></td>
79 <td>A token (RFC 2616, Section 2.2).</td> 99 <td>A token (RFC 2616, Section 2.2).</td>
80 </tr><tr> 100 </tr>
101 <tr>
81 <td><a href="#UniqueNamespace">UniqueNamespace</a></td> 102 <td><a href="#UniqueNamespace">UniqueNamespace</a></td>
82 <td>A pyPEG2 namespace which prevents setting a value twice.</td> 103 <td>A pyPEG2 namespace which prevents setting a value twice.</td>
83 </tr><tr> 104 </tr>
105 <tr>
84 <td><a href="#Value">Value</a></td> 106 <td><a href="#Value">Value</a></td>
85 <td>A value.</td> 107 <td>A value.</td>
86 </tr><tr> 108 </tr>
109 <tr>
87 <td><a href="#ValueChars">ValueChars</a></td> 110 <td><a href="#ValueChars">ValueChars</a></td>
88 <td>A value of an attribute.</td> 111 <td>A value of an attribute.</td>
89 </tr> 112 </tr>
90 </table> 113 </table>
91 <h3>Functions</h3> 114 <h3>Functions</h3>
92 <table> 115
116 <table>
117
93 <tr> 118 <tr>
94 <td><a href="#normalize_ws">normalize_ws</a></td> 119 <td><a href="#normalize_ws">normalize_ws</a></td>
95 <td>Do LWS (linear whitespace) folding.</td> 120 <td>Do LWS (linear whitespace) folding.</td>
96 </tr><tr> 121 </tr>
122 <tr>
97 <td><a href="#parse_ext_value">parse_ext_value</a></td> 123 <td><a href="#parse_ext_value">parse_ext_value</a></td>
98 <td>Parse the value of an extended attribute.</td> 124 <td>Parse the value of an extended attribute.</td>
99 </tr><tr> 125 </tr>
126 <tr>
100 <td><a href="#parse_headers">parse_headers</a></td> 127 <td><a href="#parse_headers">parse_headers</a></td>
101 <td>Build a ContentDisposition from header values.</td> 128 <td>Build a ContentDisposition from header values.</td>
102 </tr><tr> 129 </tr>
130 <tr>
103 <td><a href="#parse_headers_1">parse_headers</a></td> 131 <td><a href="#parse_headers_1">parse_headers</a></td>
104 <td>Build a ContentDisposition from header values.</td> 132 <td>Build a ContentDisposition from header values.</td>
105 </tr> 133 </tr>
106 </table> 134 </table>
107 <hr /><hr /> 135 <hr />
136 <hr />
108 <a NAME="Charset" ID="Charset"></a> 137 <a NAME="Charset" ID="Charset"></a>
109 <h2>Charset</h2> 138 <h2>Charset</h2>
139
110 <p> 140 <p>
111 A charset (RFC5987, Section 3.2.1). 141 A charset (RFC5987, Section 3.2.1).
112 </p> 142 </p>
113 <h3>Derived from</h3> 143 <h3>Derived from</h3>
114 str 144 str
115 <h3>Class Attributes</h3> 145 <h3>Class Attributes</h3>
116 <table> 146
117 <tr><td>grammar</td></tr> 147 <table>
118 </table> 148 <tr><td>grammar</td></tr>
119 <h3>Class Methods</h3> 149 </table>
120 <table> 150 <h3>Class Methods</h3>
121 <tr><td>None</td></tr> 151
122 </table> 152 <table>
123 <h3>Methods</h3> 153 <tr><td>None</td></tr>
124 <table> 154 </table>
125 <tr><td>None</td></tr> 155 <h3>Methods</h3>
126 </table> 156
127 <h3>Static Methods</h3> 157 <table>
128 <table> 158 <tr><td>None</td></tr>
129 <tr><td>None</td></tr> 159 </table>
130 </table> 160 <h3>Static Methods</h3>
131 161
132 <div align="right"><a href="#top">Up</a></div> 162 <table>
133 <hr /><hr /> 163 <tr><td>None</td></tr>
164 </table>
165
166 <div align="right"><a href="#top">Up</a></div>
167 <hr />
168 <hr />
134 <a NAME="ContentDisposition" ID="ContentDisposition"></a> 169 <a NAME="ContentDisposition" ID="ContentDisposition"></a>
135 <h2>ContentDisposition</h2> 170 <h2>ContentDisposition</h2>
171
136 <p> 172 <p>
137 Records various indications and hints about content disposition. 173 Records various indications and hints about content disposition.
138 </p><p> 174 </p>
175 <p>
139 These can be used to know if a file should be downloaded or 176 These can be used to know if a file should be downloaded or
140 displayed directly, and to hint what filename it should have 177 displayed directly, and to hint what filename it should have
141 in the download case. 178 in the download case.
142 </p> 179 </p>
143 <h3>Derived from</h3> 180 <h3>Derived from</h3>
144 None 181 None
145 <h3>Class Attributes</h3> 182 <h3>Class Attributes</h3>
146 <table> 183
147 <tr><td>None</td></tr> 184 <table>
148 </table> 185 <tr><td>None</td></tr>
149 <h3>Class Methods</h3> 186 </table>
150 <table> 187 <h3>Class Methods</h3>
151 <tr><td>None</td></tr> 188
152 </table> 189 <table>
153 <h3>Methods</h3> 190 <tr><td>None</td></tr>
154 <table> 191 </table>
192 <h3>Methods</h3>
193
194 <table>
195
155 <tr> 196 <tr>
156 <td><a href="#ContentDisposition.__init__">ContentDisposition</a></td> 197 <td><a href="#ContentDisposition.__init__">ContentDisposition</a></td>
157 <td>Used internally after parsing the header.</td> 198 <td>Used internally after parsing the header.</td>
158 </tr><tr> 199 </tr>
200 <tr>
159 <td><a href="#ContentDisposition.filename">filename</a></td> 201 <td><a href="#ContentDisposition.filename">filename</a></td>
160 <td>The filename from the Content-Disposition header or None.</td> 202 <td>The filename from the Content-Disposition header or None.</td>
161 </tr><tr> 203 </tr>
204 <tr>
162 <td><a href="#ContentDisposition.is_inline">is_inline</a></td> 205 <td><a href="#ContentDisposition.is_inline">is_inline</a></td>
163 <td>Return if the file should be handled inline.</td> 206 <td>Return if the file should be handled inline.</td>
164 </tr> 207 </tr>
165 </table> 208 </table>
166 <h3>Static Methods</h3> 209 <h3>Static Methods</h3>
167 <table> 210
168 <tr><td>None</td></tr> 211 <table>
169 </table> 212 <tr><td>None</td></tr>
213 </table>
214
170 <a NAME="ContentDisposition.__init__" ID="ContentDisposition.__init__"></a> 215 <a NAME="ContentDisposition.__init__" ID="ContentDisposition.__init__"></a>
171 <h4>ContentDisposition (Constructor)</h4> 216 <h4>ContentDisposition (Constructor)</h4>
172 <b>ContentDisposition</b>(<i>disposition='inline', assocs=None</i>) 217 <b>ContentDisposition</b>(<i>disposition='inline', assocs=None</i>)
218
173 <p> 219 <p>
174 Used internally after parsing the header. 220 Used internally after parsing the header.
175 </p><p> 221 </p>
222 <p>
176 Instances should generally be created from a factory 223 Instances should generally be created from a factory
177 function, such as parse_headers and its variants. 224 function, such as parse_headers and its variants.
178 </p><a NAME="ContentDisposition.filename" ID="ContentDisposition.filename"></a> 225 </p>
226 <a NAME="ContentDisposition.filename" ID="ContentDisposition.filename"></a>
179 <h4>ContentDisposition.filename</h4> 227 <h4>ContentDisposition.filename</h4>
180 <b>filename</b>(<i></i>) 228 <b>filename</b>(<i></i>)
229
181 <p> 230 <p>
182 The filename from the Content-Disposition header or None. 231 The filename from the Content-Disposition header or None.
183 </p><p> 232 </p>
233 <p>
184 On safety: 234 On safety:
185 This property records the intent of the sender. 235 This property records the intent of the sender.
186 </p><p> 236 </p>
237 <p>
187 You shouldn't use this sender-controlled value as a filesystem 238 You shouldn't use this sender-controlled value as a filesystem
188 path, it can be insecure. Serving files with this filename can be 239 path, it can be insecure. Serving files with this filename can be
189 dangerous as well, due to a certain browser using the part after 240 dangerous as well, due to a certain browser using the part after
190 the dot for mime-sniffing. Saving it to a database is fine by 241 the dot for mime-sniffing. Saving it to a database is fine by
191 itself though. 242 itself though.
192 </p><a NAME="ContentDisposition.is_inline" ID="ContentDisposition.is_inline"></a> 243 </p>
244 <a NAME="ContentDisposition.is_inline" ID="ContentDisposition.is_inline"></a>
193 <h4>ContentDisposition.is_inline</h4> 245 <h4>ContentDisposition.is_inline</h4>
194 <b>is_inline</b>(<i></i>) 246 <b>is_inline</b>(<i></i>)
247
195 <p> 248 <p>
196 Return if the file should be handled inline. 249 Return if the file should be handled inline.
197 </p><p> 250 </p>
251 <p>
198 If not, and unless your application supports other dispositions 252 If not, and unless your application supports other dispositions
199 than the standard inline and attachment, it should be handled 253 than the standard inline and attachment, it should be handled
200 as an attachment. 254 as an attachment.
201 </p> 255 </p>
202 <div align="right"><a href="#top">Up</a></div> 256 <div align="right"><a href="#top">Up</a></div>
203 <hr /><hr /> 257 <hr />
258 <hr />
204 <a NAME="ContentDispositionValue" ID="ContentDispositionValue"></a> 259 <a NAME="ContentDispositionValue" ID="ContentDispositionValue"></a>
205 <h2>ContentDispositionValue</h2> 260 <h2>ContentDispositionValue</h2>
261
206 <p> 262 <p>
207 A complete Content-Disposition value (RFC 6266, Section 4.1). 263 A complete Content-Disposition value (RFC 6266, Section 4.1).
208 </p> 264 </p>
209 <h3>Derived from</h3> 265 <h3>Derived from</h3>
210 None 266 None
211 <h3>Class Attributes</h3> 267 <h3>Class Attributes</h3>
212 <table> 268
213 <tr><td>grammar</td></tr> 269 <table>
214 </table> 270 <tr><td>grammar</td></tr>
215 <h3>Class Methods</h3> 271 </table>
216 <table> 272 <h3>Class Methods</h3>
217 <tr><td>None</td></tr> 273
218 </table> 274 <table>
219 <h3>Methods</h3> 275 <tr><td>None</td></tr>
220 <table> 276 </table>
221 <tr><td>None</td></tr> 277 <h3>Methods</h3>
222 </table> 278
223 <h3>Static Methods</h3> 279 <table>
224 <table> 280 <tr><td>None</td></tr>
225 <tr><td>None</td></tr> 281 </table>
226 </table> 282 <h3>Static Methods</h3>
227 283
228 <div align="right"><a href="#top">Up</a></div> 284 <table>
229 <hr /><hr /> 285 <tr><td>None</td></tr>
286 </table>
287
288 <div align="right"><a href="#top">Up</a></div>
289 <hr />
290 <hr />
230 <a NAME="ContentDisposition_1" ID="ContentDisposition_1"></a> 291 <a NAME="ContentDisposition_1" ID="ContentDisposition_1"></a>
231 <h2>ContentDisposition</h2> 292 <h2>ContentDisposition</h2>
293
232 <p> 294 <p>
233 Records various indications and hints about content disposition. 295 Records various indications and hints about content disposition.
234 </p><p> 296 </p>
297 <p>
235 These can be used to know if a file should be downloaded or 298 These can be used to know if a file should be downloaded or
236 displayed directly, and to hint what filename it should have 299 displayed directly, and to hint what filename it should have
237 in the download case. 300 in the download case.
238 </p> 301 </p>
239 <h3>Derived from</h3> 302 <h3>Derived from</h3>
240 None 303 None
241 <h3>Class Attributes</h3> 304 <h3>Class Attributes</h3>
242 <table> 305
243 <tr><td>None</td></tr> 306 <table>
244 </table> 307 <tr><td>None</td></tr>
245 <h3>Class Methods</h3> 308 </table>
246 <table> 309 <h3>Class Methods</h3>
247 <tr><td>None</td></tr> 310
248 </table> 311 <table>
249 <h3>Methods</h3> 312 <tr><td>None</td></tr>
250 <table> 313 </table>
314 <h3>Methods</h3>
315
316 <table>
317
251 <tr> 318 <tr>
252 <td><a href="#ContentDisposition_1.__init__">ContentDisposition</a></td> 319 <td><a href="#ContentDisposition_1.__init__">ContentDisposition</a></td>
253 <td>Constructor</td> 320 <td>Constructor</td>
254 </tr><tr> 321 </tr>
322 <tr>
255 <td><a href="#ContentDisposition_1.filename">filename</a></td> 323 <td><a href="#ContentDisposition_1.filename">filename</a></td>
256 <td>Public method to get the stored file name</td> 324 <td>Public method to get the stored file name</td>
257 </tr> 325 </tr>
258 </table> 326 </table>
259 <h3>Static Methods</h3> 327 <h3>Static Methods</h3>
260 <table> 328
261 <tr><td>None</td></tr> 329 <table>
262 </table> 330 <tr><td>None</td></tr>
331 </table>
332
263 <a NAME="ContentDisposition_1.__init__" ID="ContentDisposition_1.__init__"></a> 333 <a NAME="ContentDisposition_1.__init__" ID="ContentDisposition_1.__init__"></a>
264 <h4>ContentDisposition (Constructor)</h4> 334 <h4>ContentDisposition (Constructor)</h4>
265 <b>ContentDisposition</b>(<i>filename</i>) 335 <b>ContentDisposition</b>(<i>filename</i>)
336
266 <p> 337 <p>
267 Constructor 338 Constructor
268 </p><dl> 339 </p>
340 <dl>
341
269 <dt><i>filename</i> (str)</dt> 342 <dt><i>filename</i> (str)</dt>
270 <dd> 343 <dd>
271 file name to be stored in this surrogate class 344 file name to be stored in this surrogate class
272 </dd> 345 </dd>
273 </dl><a NAME="ContentDisposition_1.filename" ID="ContentDisposition_1.filename"></a> 346 </dl>
347 <a NAME="ContentDisposition_1.filename" ID="ContentDisposition_1.filename"></a>
274 <h4>ContentDisposition.filename</h4> 348 <h4>ContentDisposition.filename</h4>
275 <b>filename</b>(<i></i>) 349 <b>filename</b>(<i></i>)
350
276 <p> 351 <p>
277 Public method to get the stored file name 352 Public method to get the stored file name
278 </p><dl> 353 </p>
354 <dl>
279 <dt>Returns:</dt> 355 <dt>Returns:</dt>
280 <dd> 356 <dd>
281 file name 357 file name
282 </dd> 358 </dd>
283 </dl><dl> 359 </dl>
360 <dl>
284 <dt>Return Type:</dt> 361 <dt>Return Type:</dt>
285 <dd> 362 <dd>
286 str 363 str
287 </dd> 364 </dd>
288 </dl> 365 </dl>
289 <div align="right"><a href="#top">Up</a></div> 366 <div align="right"><a href="#top">Up</a></div>
290 <hr /><hr /> 367 <hr />
368 <hr />
291 <a NAME="DispositionParm" ID="DispositionParm"></a> 369 <a NAME="DispositionParm" ID="DispositionParm"></a>
292 <h2>DispositionParm</h2> 370 <h2>DispositionParm</h2>
371
293 <p> 372 <p>
294 A parameter for the Disposition-Type header (RFC6266, Section 4.1). 373 A parameter for the Disposition-Type header (RFC6266, Section 4.1).
295 </p> 374 </p>
296 <h3>Derived from</h3> 375 <h3>Derived from</h3>
297 str 376 str
298 <h3>Class Attributes</h3> 377 <h3>Class Attributes</h3>
299 <table> 378
300 <tr><td>grammar</td></tr> 379 <table>
301 </table> 380 <tr><td>grammar</td></tr>
302 <h3>Class Methods</h3> 381 </table>
303 <table> 382 <h3>Class Methods</h3>
304 <tr><td>None</td></tr> 383
305 </table> 384 <table>
306 <h3>Methods</h3> 385 <tr><td>None</td></tr>
307 <table> 386 </table>
308 <tr><td>None</td></tr> 387 <h3>Methods</h3>
309 </table> 388
310 <h3>Static Methods</h3> 389 <table>
311 <table> 390 <tr><td>None</td></tr>
312 <tr><td>None</td></tr> 391 </table>
313 </table> 392 <h3>Static Methods</h3>
314 393
315 <div align="right"><a href="#top">Up</a></div> 394 <table>
316 <hr /><hr /> 395 <tr><td>None</td></tr>
396 </table>
397
398 <div align="right"><a href="#top">Up</a></div>
399 <hr />
400 <hr />
317 <a NAME="DispositionParmList" ID="DispositionParmList"></a> 401 <a NAME="DispositionParmList" ID="DispositionParmList"></a>
318 <h2>DispositionParmList</h2> 402 <h2>DispositionParmList</h2>
403
319 <p> 404 <p>
320 A list of disposition parameters (RFC6266, Section 4.1). 405 A list of disposition parameters (RFC6266, Section 4.1).
321 </p> 406 </p>
322 <h3>Derived from</h3> 407 <h3>Derived from</h3>
323 UniqueNamespace 408 UniqueNamespace
324 <h3>Class Attributes</h3> 409 <h3>Class Attributes</h3>
325 <table> 410
326 <tr><td>grammar</td></tr> 411 <table>
327 </table> 412 <tr><td>grammar</td></tr>
328 <h3>Class Methods</h3> 413 </table>
329 <table> 414 <h3>Class Methods</h3>
330 <tr><td>None</td></tr> 415
331 </table> 416 <table>
332 <h3>Methods</h3> 417 <tr><td>None</td></tr>
333 <table> 418 </table>
334 <tr><td>None</td></tr> 419 <h3>Methods</h3>
335 </table> 420
336 <h3>Static Methods</h3> 421 <table>
337 <table> 422 <tr><td>None</td></tr>
338 <tr><td>None</td></tr> 423 </table>
339 </table> 424 <h3>Static Methods</h3>
340 425
341 <div align="right"><a href="#top">Up</a></div> 426 <table>
342 <hr /><hr /> 427 <tr><td>None</td></tr>
428 </table>
429
430 <div align="right"><a href="#top">Up</a></div>
431 <hr />
432 <hr />
343 <a NAME="DispositionType" ID="DispositionType"></a> 433 <a NAME="DispositionType" ID="DispositionType"></a>
344 <h2>DispositionType</h2> 434 <h2>DispositionType</h2>
435
345 <p> 436 <p>
346 The disposition type (RFC6266, Section 4.1). 437 The disposition type (RFC6266, Section 4.1).
347 </p> 438 </p>
348 <h3>Derived from</h3> 439 <h3>Derived from</h3>
349 peg.List 440 peg.List
350 <h3>Class Attributes</h3> 441 <h3>Class Attributes</h3>
351 <table> 442
352 <tr><td>grammar</td></tr> 443 <table>
353 </table> 444 <tr><td>grammar</td></tr>
354 <h3>Class Methods</h3> 445 </table>
355 <table> 446 <h3>Class Methods</h3>
356 <tr><td>None</td></tr> 447
357 </table> 448 <table>
358 <h3>Methods</h3> 449 <tr><td>None</td></tr>
359 <table> 450 </table>
360 <tr><td>None</td></tr> 451 <h3>Methods</h3>
361 </table> 452
362 <h3>Static Methods</h3> 453 <table>
363 <table> 454 <tr><td>None</td></tr>
364 <tr><td>None</td></tr> 455 </table>
365 </table> 456 <h3>Static Methods</h3>
366 457
367 <div align="right"><a href="#top">Up</a></div> 458 <table>
368 <hr /><hr /> 459 <tr><td>None</td></tr>
460 </table>
461
462 <div align="right"><a href="#top">Up</a></div>
463 <hr />
464 <hr />
369 <a NAME="DuplicateParamError" ID="DuplicateParamError"></a> 465 <a NAME="DuplicateParamError" ID="DuplicateParamError"></a>
370 <h2>DuplicateParamError</h2> 466 <h2>DuplicateParamError</h2>
467
371 <p> 468 <p>
372 Exception raised when a parameter has been given twice. 469 Exception raised when a parameter has been given twice.
373 </p> 470 </p>
374 <h3>Derived from</h3> 471 <h3>Derived from</h3>
375 Exception 472 Exception
376 <h3>Class Attributes</h3> 473 <h3>Class Attributes</h3>
377 <table> 474
378 <tr><td>None</td></tr> 475 <table>
379 </table> 476 <tr><td>None</td></tr>
380 <h3>Class Methods</h3> 477 </table>
381 <table> 478 <h3>Class Methods</h3>
382 <tr><td>None</td></tr> 479
383 </table> 480 <table>
384 <h3>Methods</h3> 481 <tr><td>None</td></tr>
385 <table> 482 </table>
386 <tr><td>None</td></tr> 483 <h3>Methods</h3>
387 </table> 484
388 <h3>Static Methods</h3> 485 <table>
389 <table> 486 <tr><td>None</td></tr>
390 <tr><td>None</td></tr> 487 </table>
391 </table> 488 <h3>Static Methods</h3>
392 489
393 <div align="right"><a href="#top">Up</a></div> 490 <table>
394 <hr /><hr /> 491 <tr><td>None</td></tr>
492 </table>
493
494 <div align="right"><a href="#top">Up</a></div>
495 <hr />
496 <hr />
395 <a NAME="ExtDispositionParm" ID="ExtDispositionParm"></a> 497 <a NAME="ExtDispositionParm" ID="ExtDispositionParm"></a>
396 <h2>ExtDispositionParm</h2> 498 <h2>ExtDispositionParm</h2>
499
397 <p> 500 <p>
398 An extended parameter (RFC6266, Section 4.1). 501 An extended parameter (RFC6266, Section 4.1).
399 </p> 502 </p>
400 <h3>Derived from</h3> 503 <h3>Derived from</h3>
401 None 504 None
402 <h3>Class Attributes</h3> 505 <h3>Class Attributes</h3>
403 <table> 506
404 <tr><td>grammar</td></tr> 507 <table>
405 </table> 508 <tr><td>grammar</td></tr>
406 <h3>Class Methods</h3> 509 </table>
407 <table> 510 <h3>Class Methods</h3>
408 <tr><td>None</td></tr> 511
409 </table> 512 <table>
410 <h3>Methods</h3> 513 <tr><td>None</td></tr>
411 <table> 514 </table>
515 <h3>Methods</h3>
516
517 <table>
518
412 <tr> 519 <tr>
413 <td><a href="#ExtDispositionParm.__init__">ExtDispositionParm</a></td> 520 <td><a href="#ExtDispositionParm.__init__">ExtDispositionParm</a></td>
414 <td></td> 521 <td></td>
415 </tr> 522 </tr>
416 </table> 523 </table>
417 <h3>Static Methods</h3> 524 <h3>Static Methods</h3>
418 <table> 525
419 <tr><td>None</td></tr> 526 <table>
420 </table> 527 <tr><td>None</td></tr>
528 </table>
529
421 <a NAME="ExtDispositionParm.__init__" ID="ExtDispositionParm.__init__"></a> 530 <a NAME="ExtDispositionParm.__init__" ID="ExtDispositionParm.__init__"></a>
422 <h4>ExtDispositionParm (Constructor)</h4> 531 <h4>ExtDispositionParm (Constructor)</h4>
423 <b>ExtDispositionParm</b>(<i>value, name=None</i>) 532 <b>ExtDispositionParm</b>(<i>value, name=None</i>)
424 533
425 <div align="right"><a href="#top">Up</a></div> 534 <div align="right"><a href="#top">Up</a></div>
426 <hr /><hr /> 535 <hr />
536 <hr />
427 <a NAME="ExtToken" ID="ExtToken"></a> 537 <a NAME="ExtToken" ID="ExtToken"></a>
428 <h2>ExtToken</h2> 538 <h2>ExtToken</h2>
539
429 <p> 540 <p>
430 A token introducing an extended value (RFC 6266, Section 4.1). 541 A token introducing an extended value (RFC 6266, Section 4.1).
431 </p> 542 </p>
432 <h3>Derived from</h3> 543 <h3>Derived from</h3>
433 peg.Symbol 544 peg.Symbol
434 <h3>Class Attributes</h3> 545 <h3>Class Attributes</h3>
546
435 <table> 547 <table>
436 <tr><td>regex</td></tr> 548 <tr><td>regex</td></tr>
437 </table> 549 </table>
438 <h3>Class Methods</h3> 550 <h3>Class Methods</h3>
439 <table> 551
440 <tr><td>None</td></tr> 552 <table>
441 </table> 553 <tr><td>None</td></tr>
442 <h3>Methods</h3> 554 </table>
443 <table> 555 <h3>Methods</h3>
556
557 <table>
558
444 <tr> 559 <tr>
445 <td><a href="#ExtToken.__str__">__str__</a></td> 560 <td><a href="#ExtToken.__str__">__str__</a></td>
446 <td></td> 561 <td></td>
447 </tr> 562 </tr>
448 </table> 563 </table>
449 <h3>Static Methods</h3> 564 <h3>Static Methods</h3>
450 <table> 565
451 <tr><td>None</td></tr> 566 <table>
452 </table> 567 <tr><td>None</td></tr>
568 </table>
569
453 <a NAME="ExtToken.__str__" ID="ExtToken.__str__"></a> 570 <a NAME="ExtToken.__str__" ID="ExtToken.__str__"></a>
454 <h4>ExtToken.__str__</h4> 571 <h4>ExtToken.__str__</h4>
455 <b>__str__</b>(<i></i>) 572 <b>__str__</b>(<i></i>)
456 573
457 <div align="right"><a href="#top">Up</a></div> 574 <div align="right"><a href="#top">Up</a></div>
458 <hr /><hr /> 575 <hr />
576 <hr />
459 <a NAME="ExtValue" ID="ExtValue"></a> 577 <a NAME="ExtValue" ID="ExtValue"></a>
460 <h2>ExtValue</h2> 578 <h2>ExtValue</h2>
579
461 <p> 580 <p>
462 An ext-value of an attribute (RFC 5987, Section 3.2). 581 An ext-value of an attribute (RFC 5987, Section 3.2).
463 </p> 582 </p>
464 <h3>Derived from</h3> 583 <h3>Derived from</h3>
465 peg.List 584 peg.List
466 <h3>Class Attributes</h3> 585 <h3>Class Attributes</h3>
467 <table> 586
468 <tr><td>grammar</td></tr> 587 <table>
469 </table> 588 <tr><td>grammar</td></tr>
470 <h3>Class Methods</h3> 589 </table>
471 <table> 590 <h3>Class Methods</h3>
472 <tr><td>None</td></tr> 591
473 </table> 592 <table>
474 <h3>Methods</h3> 593 <tr><td>None</td></tr>
475 <table> 594 </table>
476 <tr><td>None</td></tr> 595 <h3>Methods</h3>
477 </table> 596
478 <h3>Static Methods</h3> 597 <table>
479 <table> 598 <tr><td>None</td></tr>
480 <tr><td>None</td></tr> 599 </table>
481 </table> 600 <h3>Static Methods</h3>
482 601
483 <div align="right"><a href="#top">Up</a></div> 602 <table>
484 <hr /><hr /> 603 <tr><td>None</td></tr>
604 </table>
605
606 <div align="right"><a href="#top">Up</a></div>
607 <hr />
608 <hr />
485 <a NAME="InvalidISO8859Error" ID="InvalidISO8859Error"></a> 609 <a NAME="InvalidISO8859Error" ID="InvalidISO8859Error"></a>
486 <h2>InvalidISO8859Error</h2> 610 <h2>InvalidISO8859Error</h2>
611
487 <p> 612 <p>
488 Exception raised when a byte is invalid in ISO-8859-1. 613 Exception raised when a byte is invalid in ISO-8859-1.
489 </p> 614 </p>
490 <h3>Derived from</h3> 615 <h3>Derived from</h3>
491 Exception 616 Exception
492 <h3>Class Attributes</h3> 617 <h3>Class Attributes</h3>
493 <table> 618
494 <tr><td>None</td></tr> 619 <table>
495 </table> 620 <tr><td>None</td></tr>
496 <h3>Class Methods</h3> 621 </table>
497 <table> 622 <h3>Class Methods</h3>
498 <tr><td>None</td></tr> 623
499 </table> 624 <table>
500 <h3>Methods</h3> 625 <tr><td>None</td></tr>
501 <table> 626 </table>
502 <tr><td>None</td></tr> 627 <h3>Methods</h3>
503 </table> 628
504 <h3>Static Methods</h3> 629 <table>
505 <table> 630 <tr><td>None</td></tr>
506 <tr><td>None</td></tr> 631 </table>
507 </table> 632 <h3>Static Methods</h3>
508 633
509 <div align="right"><a href="#top">Up</a></div> 634 <table>
510 <hr /><hr /> 635 <tr><td>None</td></tr>
636 </table>
637
638 <div align="right"><a href="#top">Up</a></div>
639 <hr />
640 <hr />
511 <a NAME="Language" ID="Language"></a> 641 <a NAME="Language" ID="Language"></a>
512 <h2>Language</h2> 642 <h2>Language</h2>
643
513 <p> 644 <p>
514 A language-tag (RFC 5646, Section 2.1). 645 A language-tag (RFC 5646, Section 2.1).
515 </p><p> 646 </p>
647 <p>
516 Fixme: This grammar is not 100% correct yet. 648 Fixme: This grammar is not 100% correct yet.
517 https://github.com/The-Compiler/qutebrowser/issues/105 649 https://github.com/The-Compiler/qutebrowser/issues/105
518 </p> 650 </p>
519 <h3>Derived from</h3> 651 <h3>Derived from</h3>
520 str 652 str
521 <h3>Class Attributes</h3> 653 <h3>Class Attributes</h3>
522 <table> 654
523 <tr><td>grammar</td></tr> 655 <table>
524 </table> 656 <tr><td>grammar</td></tr>
525 <h3>Class Methods</h3> 657 </table>
526 <table> 658 <h3>Class Methods</h3>
527 <tr><td>None</td></tr> 659
528 </table> 660 <table>
529 <h3>Methods</h3> 661 <tr><td>None</td></tr>
530 <table> 662 </table>
531 <tr><td>None</td></tr> 663 <h3>Methods</h3>
532 </table> 664
533 <h3>Static Methods</h3> 665 <table>
534 <table> 666 <tr><td>None</td></tr>
535 <tr><td>None</td></tr> 667 </table>
536 </table> 668 <h3>Static Methods</h3>
537 669
538 <div align="right"><a href="#top">Up</a></div> 670 <table>
539 <hr /><hr /> 671 <tr><td>None</td></tr>
672 </table>
673
674 <div align="right"><a href="#top">Up</a></div>
675 <hr />
676 <hr />
540 <a NAME="NoExtToken" ID="NoExtToken"></a> 677 <a NAME="NoExtToken" ID="NoExtToken"></a>
541 <h2>NoExtToken</h2> 678 <h2>NoExtToken</h2>
679
542 <p> 680 <p>
543 A token introducing a normal value (RFC 6266, Section 4.1). 681 A token introducing a normal value (RFC 6266, Section 4.1).
544 </p> 682 </p>
545 <h3>Derived from</h3> 683 <h3>Derived from</h3>
546 peg.Symbol 684 peg.Symbol
547 <h3>Class Attributes</h3> 685 <h3>Class Attributes</h3>
686
548 <table> 687 <table>
549 <tr><td>regex</td></tr> 688 <tr><td>regex</td></tr>
550 </table> 689 </table>
551 <h3>Class Methods</h3> 690 <h3>Class Methods</h3>
552 <table> 691
553 <tr><td>None</td></tr> 692 <table>
554 </table> 693 <tr><td>None</td></tr>
555 <h3>Methods</h3> 694 </table>
556 <table> 695 <h3>Methods</h3>
696
697 <table>
698
557 <tr> 699 <tr>
558 <td><a href="#NoExtToken.__str__">__str__</a></td> 700 <td><a href="#NoExtToken.__str__">__str__</a></td>
559 <td></td> 701 <td></td>
560 </tr> 702 </tr>
561 </table> 703 </table>
562 <h3>Static Methods</h3> 704 <h3>Static Methods</h3>
563 <table> 705
564 <tr><td>None</td></tr> 706 <table>
565 </table> 707 <tr><td>None</td></tr>
708 </table>
709
566 <a NAME="NoExtToken.__str__" ID="NoExtToken.__str__"></a> 710 <a NAME="NoExtToken.__str__" ID="NoExtToken.__str__"></a>
567 <h4>NoExtToken.__str__</h4> 711 <h4>NoExtToken.__str__</h4>
568 <b>__str__</b>(<i></i>) 712 <b>__str__</b>(<i></i>)
569 713
570 <div align="right"><a href="#top">Up</a></div> 714 <div align="right"><a href="#top">Up</a></div>
571 <hr /><hr /> 715 <hr />
716 <hr />
572 <a NAME="QuotedString" ID="QuotedString"></a> 717 <a NAME="QuotedString" ID="QuotedString"></a>
573 <h2>QuotedString</h2> 718 <h2>QuotedString</h2>
719
574 <p> 720 <p>
575 A quoted string (RFC 2616, Section 2.2). 721 A quoted string (RFC 2616, Section 2.2).
576 </p> 722 </p>
577 <h3>Derived from</h3> 723 <h3>Derived from</h3>
578 str 724 str
579 <h3>Class Attributes</h3> 725 <h3>Class Attributes</h3>
580 <table> 726
581 <tr><td>grammar</td></tr> 727 <table>
582 </table> 728 <tr><td>grammar</td></tr>
583 <h3>Class Methods</h3> 729 </table>
584 <table> 730 <h3>Class Methods</h3>
585 <tr><td>None</td></tr> 731
586 </table> 732 <table>
587 <h3>Methods</h3> 733 <tr><td>None</td></tr>
588 <table> 734 </table>
735 <h3>Methods</h3>
736
737 <table>
738
589 <tr> 739 <tr>
590 <td><a href="#QuotedString.__str__">__str__</a></td> 740 <td><a href="#QuotedString.__str__">__str__</a></td>
591 <td></td> 741 <td></td>
592 </tr> 742 </tr>
593 </table> 743 </table>
594 <h3>Static Methods</h3> 744 <h3>Static Methods</h3>
595 <table> 745
596 <tr><td>None</td></tr> 746 <table>
597 </table> 747 <tr><td>None</td></tr>
748 </table>
749
598 <a NAME="QuotedString.__str__" ID="QuotedString.__str__"></a> 750 <a NAME="QuotedString.__str__" ID="QuotedString.__str__"></a>
599 <h4>QuotedString.__str__</h4> 751 <h4>QuotedString.__str__</h4>
600 <b>__str__</b>(<i></i>) 752 <b>__str__</b>(<i></i>)
601 753
602 <div align="right"><a href="#top">Up</a></div> 754 <div align="right"><a href="#top">Up</a></div>
603 <hr /><hr /> 755 <hr />
756 <hr />
604 <a NAME="Token" ID="Token"></a> 757 <a NAME="Token" ID="Token"></a>
605 <h2>Token</h2> 758 <h2>Token</h2>
759
606 <p> 760 <p>
607 A token (RFC 2616, Section 2.2). 761 A token (RFC 2616, Section 2.2).
608 </p> 762 </p>
609 <h3>Derived from</h3> 763 <h3>Derived from</h3>
610 str 764 str
611 <h3>Class Attributes</h3> 765 <h3>Class Attributes</h3>
612 <table> 766
613 <tr><td>grammar</td></tr> 767 <table>
614 </table> 768 <tr><td>grammar</td></tr>
615 <h3>Class Methods</h3> 769 </table>
616 <table> 770 <h3>Class Methods</h3>
617 <tr><td>None</td></tr> 771
618 </table> 772 <table>
619 <h3>Methods</h3> 773 <tr><td>None</td></tr>
620 <table> 774 </table>
621 <tr><td>None</td></tr> 775 <h3>Methods</h3>
622 </table> 776
623 <h3>Static Methods</h3> 777 <table>
624 <table> 778 <tr><td>None</td></tr>
625 <tr><td>None</td></tr> 779 </table>
626 </table> 780 <h3>Static Methods</h3>
627 781
628 <div align="right"><a href="#top">Up</a></div> 782 <table>
629 <hr /><hr /> 783 <tr><td>None</td></tr>
784 </table>
785
786 <div align="right"><a href="#top">Up</a></div>
787 <hr />
788 <hr />
630 <a NAME="UniqueNamespace" ID="UniqueNamespace"></a> 789 <a NAME="UniqueNamespace" ID="UniqueNamespace"></a>
631 <h2>UniqueNamespace</h2> 790 <h2>UniqueNamespace</h2>
791
632 <p> 792 <p>
633 A pyPEG2 namespace which prevents setting a value twice. 793 A pyPEG2 namespace which prevents setting a value twice.
634 </p> 794 </p>
635 <h3>Derived from</h3> 795 <h3>Derived from</h3>
636 peg.Namespace 796 peg.Namespace
637 <h3>Class Attributes</h3> 797 <h3>Class Attributes</h3>
638 <table> 798
639 <tr><td>None</td></tr> 799 <table>
640 </table> 800 <tr><td>None</td></tr>
641 <h3>Class Methods</h3> 801 </table>
642 <table> 802 <h3>Class Methods</h3>
643 <tr><td>None</td></tr> 803
644 </table> 804 <table>
645 <h3>Methods</h3> 805 <tr><td>None</td></tr>
646 <table> 806 </table>
807 <h3>Methods</h3>
808
809 <table>
810
647 <tr> 811 <tr>
648 <td><a href="#UniqueNamespace.__setitem__">__setitem__</a></td> 812 <td><a href="#UniqueNamespace.__setitem__">__setitem__</a></td>
649 <td>Special method to set an item.</td> 813 <td>Special method to set an item.</td>
650 </tr> 814 </tr>
651 </table> 815 </table>
652 <h3>Static Methods</h3> 816 <h3>Static Methods</h3>
653 <table> 817
654 <tr><td>None</td></tr> 818 <table>
655 </table> 819 <tr><td>None</td></tr>
820 </table>
821
656 <a NAME="UniqueNamespace.__setitem__" ID="UniqueNamespace.__setitem__"></a> 822 <a NAME="UniqueNamespace.__setitem__" ID="UniqueNamespace.__setitem__"></a>
657 <h4>UniqueNamespace.__setitem__</h4> 823 <h4>UniqueNamespace.__setitem__</h4>
658 <b>__setitem__</b>(<i>key, value</i>) 824 <b>__setitem__</b>(<i>key, value</i>)
825
659 <p> 826 <p>
660 Special method to set an item. 827 Special method to set an item.
661 </p><dl> 828 </p>
829 <dl>
830
662 <dt><i>key</i></dt> 831 <dt><i>key</i></dt>
663 <dd> 832 <dd>
664 key for the item 833 key for the item
665 </dd><dt><i>value</i></dt> 834 </dd>
835 <dt><i>value</i></dt>
666 <dd> 836 <dd>
667 value of the item 837 value of the item
668 </dd> 838 </dd>
669 </dl> 839 </dl>
670 <div align="right"><a href="#top">Up</a></div> 840 <div align="right"><a href="#top">Up</a></div>
671 <hr /><hr /> 841 <hr />
842 <hr />
672 <a NAME="Value" ID="Value"></a> 843 <a NAME="Value" ID="Value"></a>
673 <h2>Value</h2> 844 <h2>Value</h2>
845
674 <p> 846 <p>
675 A value. (RFC 2616, Section 3.6). 847 A value. (RFC 2616, Section 3.6).
676 </p> 848 </p>
677 <h3>Derived from</h3> 849 <h3>Derived from</h3>
678 str 850 str
679 <h3>Class Attributes</h3> 851 <h3>Class Attributes</h3>
680 <table> 852
681 <tr><td>grammar</td></tr> 853 <table>
682 </table> 854 <tr><td>grammar</td></tr>
683 <h3>Class Methods</h3> 855 </table>
684 <table> 856 <h3>Class Methods</h3>
685 <tr><td>None</td></tr> 857
686 </table> 858 <table>
687 <h3>Methods</h3> 859 <tr><td>None</td></tr>
688 <table> 860 </table>
689 <tr><td>None</td></tr> 861 <h3>Methods</h3>
690 </table> 862
691 <h3>Static Methods</h3> 863 <table>
692 <table> 864 <tr><td>None</td></tr>
693 <tr><td>None</td></tr> 865 </table>
694 </table> 866 <h3>Static Methods</h3>
695 867
696 <div align="right"><a href="#top">Up</a></div> 868 <table>
697 <hr /><hr /> 869 <tr><td>None</td></tr>
870 </table>
871
872 <div align="right"><a href="#top">Up</a></div>
873 <hr />
874 <hr />
698 <a NAME="ValueChars" ID="ValueChars"></a> 875 <a NAME="ValueChars" ID="ValueChars"></a>
699 <h2>ValueChars</h2> 876 <h2>ValueChars</h2>
877
700 <p> 878 <p>
701 A value of an attribute. 879 A value of an attribute.
702 </p><p> 880 </p>
881 <p>
703 Fixme: Can we merge this with Value? 882 Fixme: Can we merge this with Value?
704 https://github.com/The-Compiler/qutebrowser/issues/105 883 https://github.com/The-Compiler/qutebrowser/issues/105
705 </p> 884 </p>
706 <h3>Derived from</h3> 885 <h3>Derived from</h3>
707 str 886 str
708 <h3>Class Attributes</h3> 887 <h3>Class Attributes</h3>
709 <table> 888
710 <tr><td>grammar</td></tr> 889 <table>
711 </table> 890 <tr><td>grammar</td></tr>
712 <h3>Class Methods</h3> 891 </table>
713 <table> 892 <h3>Class Methods</h3>
714 <tr><td>None</td></tr> 893
715 </table> 894 <table>
716 <h3>Methods</h3> 895 <tr><td>None</td></tr>
717 <table> 896 </table>
718 <tr><td>None</td></tr> 897 <h3>Methods</h3>
719 </table> 898
720 <h3>Static Methods</h3> 899 <table>
721 <table> 900 <tr><td>None</td></tr>
722 <tr><td>None</td></tr> 901 </table>
723 </table> 902 <h3>Static Methods</h3>
724 903
725 <div align="right"><a href="#top">Up</a></div> 904 <table>
726 <hr /><hr /> 905 <tr><td>None</td></tr>
906 </table>
907
908 <div align="right"><a href="#top">Up</a></div>
909 <hr />
910 <hr />
727 <a NAME="normalize_ws" ID="normalize_ws"></a> 911 <a NAME="normalize_ws" ID="normalize_ws"></a>
728 <h2>normalize_ws</h2> 912 <h2>normalize_ws</h2>
729 <b>normalize_ws</b>(<i>text</i>) 913 <b>normalize_ws</b>(<i>text</i>)
914
730 <p> 915 <p>
731 Do LWS (linear whitespace) folding. 916 Do LWS (linear whitespace) folding.
732 </p> 917 </p>
733 <div align="right"><a href="#top">Up</a></div> 918 <div align="right"><a href="#top">Up</a></div>
734 <hr /><hr /> 919 <hr />
920 <hr />
735 <a NAME="parse_ext_value" ID="parse_ext_value"></a> 921 <a NAME="parse_ext_value" ID="parse_ext_value"></a>
736 <h2>parse_ext_value</h2> 922 <h2>parse_ext_value</h2>
737 <b>parse_ext_value</b>(<i>val</i>) 923 <b>parse_ext_value</b>(<i>val</i>)
924
738 <p> 925 <p>
739 Parse the value of an extended attribute. 926 Parse the value of an extended attribute.
740 </p> 927 </p>
741 <div align="right"><a href="#top">Up</a></div> 928 <div align="right"><a href="#top">Up</a></div>
742 <hr /><hr /> 929 <hr />
930 <hr />
743 <a NAME="parse_headers" ID="parse_headers"></a> 931 <a NAME="parse_headers" ID="parse_headers"></a>
744 <h2>parse_headers</h2> 932 <h2>parse_headers</h2>
745 <b>parse_headers</b>(<i>content_disposition</i>) 933 <b>parse_headers</b>(<i>content_disposition</i>)
934
746 <p> 935 <p>
747 Build a ContentDisposition from header values. 936 Build a ContentDisposition from header values.
748 </p><dl> 937 </p>
938 <dl>
939
749 <dt><i>content_disposition</i> (bytes)</dt> 940 <dt><i>content_disposition</i> (bytes)</dt>
750 <dd> 941 <dd>
751 contents of the disposition header 942 contents of the disposition header
752 </dd> 943 </dd>
753 </dl> 944 </dl>
754 <div align="right"><a href="#top">Up</a></div> 945 <div align="right"><a href="#top">Up</a></div>
755 <hr /><hr /> 946 <hr />
947 <hr />
756 <a NAME="parse_headers_1" ID="parse_headers_1"></a> 948 <a NAME="parse_headers_1" ID="parse_headers_1"></a>
757 <h2>parse_headers</h2> 949 <h2>parse_headers</h2>
758 <b>parse_headers</b>(<i>content_disposition</i>) 950 <b>parse_headers</b>(<i>content_disposition</i>)
951
759 <p> 952 <p>
760 Build a ContentDisposition from header values. 953 Build a ContentDisposition from header values.
761 </p><dl> 954 </p>
955 <dl>
956
762 <dt><i>content_disposition</i> (bytes)</dt> 957 <dt><i>content_disposition</i> (bytes)</dt>
763 <dd> 958 <dd>
764 contents of the disposition header 959 contents of the disposition header
765 </dd> 960 </dd>
766 </dl> 961 </dl>

eric ide

mercurial