Skip to content

Commit 83b7bef

Browse files
committed
Polishing contribution
Closes gh-35227
1 parent bfcf4ea commit 83b7bef

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

framework-docs/modules/ROOT/pages/web/webflux/range.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ xref:web/webflux-functional.adoc#webflux-fn-resources[serves a `Resource`]. `Ran
1515
support is also transparently handled when serving
1616
xref:web/webflux/config.adoc#webflux-config-static-resources[static resources].
1717

18+
TIP: The `Resource` must not be an `InputStreamResource` and with `ResponseEntity<Resource>`,
19+
the status of the response must be 200.
20+
1821
The underlying support is in the `HttpRange` class, which exposes methods to parse
1922
`Range` headers and split a `Resource` into a `List<ResourceRegion>` that in turn can be
2023
then written to the response via `ResourceRegionEncoder` and `ResourceHttpMessageWriter`.

framework-docs/modules/ROOT/pages/web/webmvc/mvc-range.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ xref:web/webmvc-functional.adoc#webmvc-fn-resources[serves a `Resource`]. `Range
1515
support is also transparently handled when serving
1616
xref:web/webmvc/mvc-config/static-resources.adoc[static resources].
1717

18-
NOTE: To be handled transparently, the `Resource` object must not be a `InputStreamResource` and, in case of an annotated controller returning `ResponseEntity<Resource>`, the status of the response must be 200.
18+
TIP: The `Resource` must not be an `InputStreamResource` and with `ResponseEntity<Resource>`,
19+
the status of the response must be 200.
1920

2021
The underlying support is in the `HttpRange` class, which exposes methods to parse
2122
`Range` headers and split a `Resource` into a `List<ResourceRegion>` that in turn can be

0 commit comments

Comments
 (0)