Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/zandero/http
- Owner: zandero
- License: apache-2.0
- Created: 2017-03-06T12:53:15.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-04-07T06:20:54.000Z (over 2 years ago)
- Last Synced: 2024-05-01T11:34:08.592Z (7 months ago)
- Topics: apache-httpcomponents, http
- Language: Java
- Homepage:
- Size: 37.1 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# http
Http utilities for easy request building and executionWrapper 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);
```