Skip to content

Commit 4bf634d

Browse files
committed
doc (constraints for http range requests)
Closes gh-35226
1 parent fbc5ff8 commit 4bf634d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +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.
19+
1820
The underlying support is in the `HttpRange` class, which exposes methods to parse
1921
`Range` headers and split a `Resource` into a `List<ResourceRegion>` that in turn can be
2022
then written to the response via `ResourceRegionHttpMessageConverter`.

0 commit comments

Comments
 (0)