Skip to content

Commit c96218e

Browse files
authored
Merge pull request #296 from grondo/rfc24-encoding
rfc24: add optional encoding override in data events
2 parents 94f34ee + 17436dc commit c96218e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

spec_24.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ version
8383

8484
encoding
8585
(object) A dictionary mapping stream names (e.g. ``stdin``, ``stdout``, ``stderr``)
86-
to encoding type (e.g. ``base64``, ``UTF-8``).
86+
to default encoding type (e.g. ``base64``, ``UTF-8``).
8787

8888
count
8989
(object) A dictionary mapping stream names (e.g. ``stdout``, ``stderr``)
@@ -146,6 +146,12 @@ data
146146
eof
147147
(boolean) End of stream indicator.
148148

149+
The following keys are OPTIOINAL in the event context object:
150+
151+
encoding
152+
(string) The encoding of this particular data event when different from
153+
the default encoding specified by the header event.
154+
149155
The context object SHOULD contain either a ``data`` or ``eof`` key, or both.
150156

151157
Example:

0 commit comments

Comments
 (0)