Skip to content

zandero/http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http

Http utilities for easy request building and execution

Wrapper around Apache Http client

Setup

<dependency>      
     <groupId>com.zandero</groupId>      
     <artifactId>http</artifactId>      
     <version>1.3</version>      
</dependency>

HttpUtils

Step 1 - build your request

HttpRequestBase req = HttpUtils.get("http://httpbin.org/get");	

Step 2 - execute request

HttpResponse res = HttpUtils.execute(req);

Step 2 - execute request asynchronously

HttpResponse res = HttpUtils.executeAsync(executor, req, future);