Interface RangeDirectives
-
- All Known Subinterfaces:
Directives
- All Known Implementing Classes:
Directives$,HttpApp,RangeDirectives$
public interface RangeDirectives
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Directive<scala.runtime.BoxedUnit>withRangeSupport()Answers GET requests with anAccept-Ranges: bytesheader and converts HttpResponses coming back from its inner route into partial responses if the initial request contained a validRangerequest header.
-
-
-
Method Detail
-
withRangeSupport
Directive<scala.runtime.BoxedUnit> withRangeSupport()
Answers GET requests with anAccept-Ranges: bytesheader and converts HttpResponses coming back from its inner route into partial responses if the initial request contained a validRangerequest header. The requested byte-ranges may be coalesced. This directive is transparent to non-GET requests Rejects requests with unsatisfiable rangesUnsatisfiableRangeRejection. Rejects requests with too many expected ranges.Note: if you want to combine this directive with
conditional(...)you need to put it on the *inside* of theconditional(...)directive, i.e.conditional(...)must be on a higher level in your route structure in order to function correctly.
-
-