Annotation Type Destination


@Documented @Retention(RUNTIME) @Target(PARAMETER) public @interface Destination
Marks the java.io.File parameter a File-returning method writes its response body into, instead of buffering the whole body into a byte[]:
 @GET("/reports/{id}/pdf")
 File downloadReport(@PathParam("id") String id, @Destination File target);
 
Required on exactly one File parameter of any method that returns File (or CompletableFuture<File>), checked at validation time. The returned File is the same instance passed in.