[[_contentrange]]
== Content-Range Support

RESTEasy supports `Range` requests for `java.io.File` response entities. 

[source,java]
----
@Path("/")
public class Resource {
  @GET
  @Path("file")
  @Produces("text/plain")
  public File getFile(){
     return file;
  }
}
----

[source,java]
----
Response response = client.target(generateURL("/file")).request()
      .header("Range", "1-4").get();
Assertions.assertEquals(response.getStatus(), 206);
Assertions.assertEquals(4, response.getLength());
System.out.println("Content-Range: " + response.getHeaderString("Content-Range"));
----