File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ func main() {
66
66
r .HandleFunc ("/eventstreams/differentdataschemas" , eventstreams .HandleEventStreamDifferentDataSchemas ).Methods (http .MethodPost )
67
67
r .HandleFunc ("/eventstreams/differentdataschemas-flat" , eventstreams .HandleEventStreamDifferentDataSchemasFlatten ).Methods (http .MethodPost )
68
68
r .HandleFunc ("/jsonl" , jsonLines .HandleJSONLinesRich ).Methods (http .MethodGet )
69
+ r .HandleFunc ("/jsonl/deserialization_verification" , jsonLines .HandleJsonLinesDeserializationVerification ).Methods (http .MethodGet )
69
70
r .HandleFunc ("/jsonl/chunks" , jsonLines .HandleJSONLinesChunksRich ).Methods (http .MethodGet )
70
71
r .HandleFunc ("/x-ndjson" , xNdJson .HandleXNdJsonLinesRich ).Methods (http .MethodGet )
71
72
r .HandleFunc ("/x-ndjson/chunks" , xNdJson .HandleXNdJsonLinesChunksRich ).Methods (http .MethodGet )
Original file line number Diff line number Diff line change @@ -54,3 +54,14 @@ func HandleJSONLinesRich(rw http.ResponseWriter, _ *http.Request) {
54
54
},
55
55
})
56
56
}
57
+
58
+ func HandleJsonLinesDeserializationVerification (rw http.ResponseWriter , _ * http.Request ) {
59
+ rw .Header ().Add ("Content-Type" , "application/jsonl" )
60
+
61
+ pushEvents (rw , [][]string {
62
+ {
63
+ "{\" isFinished\" : \" yes\" }\n " ,
64
+ },
65
+ })
66
+
67
+ }
You can’t perform that action at this time.
0 commit comments