Browse Source

Polishing contribution

Closes gh-35227
pull/35329/head
rstoyanchev 4 months ago
parent
commit
83b7bef572
  1. 3
      framework-docs/modules/ROOT/pages/web/webflux/range.adoc
  2. 3
      framework-docs/modules/ROOT/pages/web/webmvc/mvc-range.adoc

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

@ -15,6 +15,9 @@ xref:web/webflux-functional.adoc#webflux-fn-resources[serves a `Resource`]. `Ran @@ -15,6 +15,9 @@ xref:web/webflux-functional.adoc#webflux-fn-resources[serves a `Resource`]. `Ran
support is also transparently handled when serving
xref:web/webflux/config.adoc#webflux-config-static-resources[static resources].
TIP: The `Resource` must not be an `InputStreamResource` and with `ResponseEntity<Resource>`,
the status of the response must be 200.
The underlying support is in the `HttpRange` class, which exposes methods to parse
`Range` headers and split a `Resource` into a `List<ResourceRegion>` that in turn can be
then written to the response via `ResourceRegionEncoder` and `ResourceHttpMessageWriter`.

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

@ -15,7 +15,8 @@ xref:web/webmvc-functional.adoc#webmvc-fn-resources[serves a `Resource`]. `Range @@ -15,7 +15,8 @@ xref:web/webmvc-functional.adoc#webmvc-fn-resources[serves a `Resource`]. `Range
support is also transparently handled when serving
xref:web/webmvc/mvc-config/static-resources.adoc[static resources].
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.
TIP: The `Resource` must not be an `InputStreamResource` and with `ResponseEntity<Resource>`,
the status of the response must be 200.
The underlying support is in the `HttpRange` class, which exposes methods to parse
`Range` headers and split a `Resource` into a `List<ResourceRegion>` that in turn can be

Loading…
Cancel
Save