core/play/src/main/java/play/mvc/RangeResults.java
public static Result ofPath(Http.Request request, Path path) {
    return ofPath(request, path, StaticFileMimeTypes.fileMimeTypes());
  }
public static Result ofPath(Http.Request request, Path path) {
    return ofPath(request, path, StaticFileMimeTypes.fileMimeTypes());
  }
public static Result ofPath ( Http . Request request , Path path ) { return ofPath ( request , path , StaticFileMimeTypes . fileMimeTypes ( ) ) ; }
Returns the path 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 request the request from which to retrieve the range header.
@param path the content path
@return range result if "Range" header is present and regular result if not
Returns the path 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 .