core/play/src/main/java/play/mvc/RangeResults.java
@Deprecated
  public static Result ofSource(
      Long entityLength, Source<ByteString, ?> source, String fileName, String contentType) {
    return ofSource(Http.Context.current().request(), entityLength, source, fileName, contentType);
  }
@Deprecated
  public static Result ofSource(
      Long entityLength, Source<ByteString, ?> source, String fileName, String contentType) {
    return ofSource(Http.Context.current().request(), entityLength, source, fileName, contentType);
  }
Returns the stream as a result considering "Range" header. If the header is present and it is
satisfiable, then a Result containing just the requested part will be returned. If the header
is not present or is unsatisfiable, then a regular Result will be returned.

@param entityLength the entityLength
@param source source of the entity
@param fileName filename used at the Content-Disposition header
@param contentType the content type for this stream
@return range result if "Range" header is present and regular result if not
@deprecated Deprecated as of 2.7.0. Use {@link #ofSource(Http.Request, Long, Source, String,
String)} instead.