@Deprecated
  public static Result ofPath(Path path, String fileName) {
    return ofPath(Http.Context.current().request(), path, fileName);
  }
@Deprecated
  public static Result ofPath(Path path, String fileName) {
    return ofPath(Http.Context.current().request(), path, fileName);
  }
@ Deprecated public static Result ofPath ( Path path , String fileName ) { return ofPath ( Http . Context . current ( ) . request ( ) , path , fileName ) ; }
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 path the content path
@param fileName filename used at the Content-Disposition header.
@return range result if "Range" header is present and regular result if not
@deprecated Deprecated as of 2.7.0. Use {link {@link #ofPath(Http.Request, Path, String)}
instead.
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 .