Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zandero/http

Collection of http utilities
https://github.com/zandero/http

apache-httpcomponents http

Last synced: 4 days ago
JSON representation

Collection of http utilities

Awesome Lists containing this project

README

        

# http
Http utilities for easy request building and execution

Wrapper around Apache Http client

# Setup
```xml

com.zandero
http
1.3

```

## HttpUtils

### Step 1 - build your request

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

### Step 2 - execute request
```java
HttpResponse res = HttpUtils.execute(req);
```

### Step 2 - execute request asynchronously
```java
HttpResponse res = HttpUtils.executeAsync(executor, req, future);
```