|
48 | 48 | Here is the \class{Header} class description: |
49 | 49 |
|
50 | 50 | \begin{classdesc}{Header}{\optional{s\optional{, charset\optional{, |
51 | | - maxlinelen\optional{, header_name\optional{, continuation_ws}}}}}} |
| 51 | + maxlinelen\optional{, header_name\optional{, continuation_ws\optional{, |
| 52 | + errors}}}}}}} |
52 | 53 | Create a MIME-compliant header that can contain strings in different |
53 | 54 | character sets. |
54 | 55 |
|
|
79 | 80 | This character will be prepended to continuation lines. |
80 | 81 | \end{classdesc} |
81 | 82 |
|
82 | | -\begin{methoddesc}[Header]{append}{s\optional{, charset}} |
| 83 | +Optional \var{errors} is passed straight through to the |
| 84 | +\method{append()} method. |
| 85 | + |
| 86 | +\begin{methoddesc}[Header]{append}{s\optional{, charset\optional{, errors}}} |
83 | 87 | Append the string \var{s} to the MIME header. |
84 | 88 |
|
85 | 89 | Optional \var{charset}, if given, should be a \class{Charset} instance |
|
100 | 104 | rules, the Unicode string will be encoded using the following charsets |
101 | 105 | in order: \code{us-ascii}, the \var{charset} hint, \code{utf-8}. The |
102 | 106 | first character set to not provoke a \exception{UnicodeError} is used. |
| 107 | + |
| 108 | +Optional \var{errors} is passed through to any \function{unicode()} or |
| 109 | +\function{ustr.encode()} call, and defaults to ``strict''. |
103 | 110 | \end{methoddesc} |
104 | 111 |
|
105 | 112 | \begin{methoddesc}[Header]{encode}{} |
|
0 commit comments