-
Notifications
You must be signed in to change notification settings - Fork 38.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Have ReactiveTypeHandler consider +x-ndjson suffix as streaming
This commit adds `application/*+x-ndjson`, a wildcard media type which covers all types that can be parsed as nd-json, to the list of media types the ReactiveTypeHandler considers for a streaming response in WebMVC. As a result, a request which for example `Accept` the `application/vnd.myapp.v1+x-ndjson` media type will generate a response with the same `Content-Type`, with newline-delimited json objects being streamed in the response body. Closes gh-26817
- Loading branch information
1 parent
5f13b2b
commit 9332b3f
Showing
2 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters