Skip to content

Commit 03d8abc

Browse files
committed
docs: mention non-JSON terminating byte sequences in Useful-OpenAPI-patterns.md
1 parent 7c36ba9 commit 03d8abc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/swift-openapi-generator/Documentation.docc/Articles/Useful-OpenAPI-patterns.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ The returned binary body contains the raw events, and the stream can be split up
113113
- encode: `AsyncSequence<some Encodable>.asEncodedJSONSequence(encoder:)`
114114
- Server-sent Events
115115
- decode (if data is JSON): `AsyncSequence<ArraySlice<UInt8>>.asDecodedServerSentEventsWithJSONData(of:decoder:)`
116+
- decode (if data is JSON with a non-JSON terminating byte sequence): `AsyncSequence<ArraySlice<UInt8>>.asDecodedServerSentEventsWithJSONData(of:decoder:terminate:)`
116117
- encode (if data is JSON): `AsyncSequence<some Encodable>.asEncodedServerSentEventsWithJSONData(encoder:)`
117118
- decode (for other data): `AsyncSequence<ArraySlice<UInt8>>.asDecodedServerSentEvents()`
118119
- encode (for other data): `AsyncSequence<some Encodable>.asEncodedServerSentEvents()`

0 commit comments

Comments
 (0)