Created
January 6, 2011 20:00
-
-
Save jfarcand/768469 to your computer and use it in GitHub Desktop.
SimpleAsyncHttpClient
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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