Skip to content

Instantly share code, notes, and snippets.

@jfarcand
Created January 6, 2011 20:00
Show Gist options
  • Save jfarcand/768469 to your computer and use it in GitHub Desktop.
Save jfarcand/768469 to your computer and use it in GitHub Desktop.
SimpleAsyncHttpClient
public interface SimpleAsyncHttpClient {
public Future<Response> upload(String uri, File file);
public Future<Response> upload(String uri, InputStream stream);
public Future<Response> upload(String uri, BodyGenerator bodyGenerator) ;
public Future<Response> upload(Request request, File file) ;
public Future<Response> upload(Request request, InputStream stream) ;
public Future<Response> upload(Request request, BodyGenerator bodyGenerator) ;
public Future<Response> download(String uri, RandomAccessFile file);
public Future<Response> download(String uri, OutputStream stream);
public Future<Response> download(Request request, RandomAccessFile file) ;
public Future<Response> download(Request request, OutputStream stream) ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment