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

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

eric ide

mercurial