Skip to content

Commit cd0d290

Browse files
authored
Merge pull request #3729 from handrews/streaming-binary
Clarify how to model streaming binary data
2 parents dad5a79 + 0c4aef7 commit cd0d290

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

versions/3.0.4.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ Two formats, `binary` and `byte`, describe different ways to work with binary da
171171
* `binary` is used where unencoded binary data is allowed, such as when sending a binary payload as an HTTP message body, or as part of a `multipart/*` payload that allows binary parts
172172
* `byte` is used where binary data is embedded in a text-only format such as `application/json` or `application/x-www-form-urlencoded`
173173

174+
The `maxLength` keyword MAY be used to set an expected upper bound on the length of a streaming payload. The keyword can be applied to either string data, including encoded binary data, or to unencoded binary data. For unencoded binary, the length is the number of octets.
175+
174176
Note that the encoding indicated by `byte`, which inflates the size of data in order to represent it as 7-bit ASCII text, is unrelated to HTTP's `Content-Encoding` header, which indicates whether and how a message body has been compressed.
175177

176178
### <a name="richText"></a>Rich Text Formatting

0 commit comments

Comments
 (0)