Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 606 Bytes

README.md

File metadata and controls

32 lines (24 loc) · 606 Bytes

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);