https://github.com/rishikeshdarandale/aws-http
A fluent http client library for aws
https://github.com/rishikeshdarandale/aws-http
aws-http-client http-client java
Last synced: 3 months ago
JSON representation
A fluent http client library for aws
- Host: GitHub
- URL: https://github.com/rishikeshdarandale/aws-http
- Owner: RishikeshDarandale
- License: mit
- Created: 2018-01-22T03:29:58.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-07-06T23:14:20.000Z (almost 4 years ago)
- Last Synced: 2025-01-17T22:14:50.089Z (5 months ago)
- Topics: aws-http-client, http-client, java
- Language: Java
- Homepage: https://rishikeshdarandale.github.io/aws-http
- Size: 240 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aws-http
[](https://travis-ci.org/RishikeshDarandale/aws-http)
[](https://codecov.io/gh/RishikeshDarandale/aws-http)
[](https://www.codacy.com/app/RishikeshDarandale/aws-http?utm_source=github.com&utm_medium=referral&utm_content=RishikeshDarandale/aws-http&utm_campaign=Badge_Grade)[](http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22aws-http%22)
[](http://www.javadoc.io/doc/io.github.rishikeshdarandale/aws-http)
[](https://github.com/rishikeshdarandale/aws-http/blob/master/LICENSE)A fluent http client library for aws
### Requirement
* java 8
### Usage
Add the dependency to your project as below:
* maven
```
io.github.rishikeshdarandale
aws-http
1.0.0```
* gradle
```
dependencies {
compile 'io.github.rishikeshdarandale:aws-http:1.0.0'
}
```Here is example:
```
MyClass myClassObject = new JdkRequest("https://www.somehost.com")
.method(RequestMethod.GET)
.path("/mypath")
.queryParams("message", "hello*world")
.header("Accept", "application/json")
.header("Content-Type", "application/json")
.body("{}")
.sign(AwsSignParams("myAccessKey", "MySecretId", "es"))
.execute()
.getAs(MyClass.class);
````aws-http` is flexible library and you can use either of following http libraries:
* jersey-client
Add `jersey-client` library to your project along with `aws-http` as below:
* maven
```
io.github.rishikeshdarandale
aws-http
1.0.0org.glassfish.jersey.core
jersey-client
2.26
runtime```
* gradle
```
dependencies {
compile 'io.github.rishikeshdarandale:aws-http:1.0.0'
runtime 'org.glassfish.jersey.core:jersey-client:2.26'
}
```Here is example:
```
MyClass myClassObject = new JerseyRequest("https://www.somehost.com")
.method(RequestMethod.GET)
.path("/mypath")
.queryParams("message", "hello*world")
.header("Accept", "application/json")
.header("Content-Type", "application/json")
.body("{}")
.sign(AwsSignParams("myAccessKey", "MySecretId", "es"))
.execute()
.getAs(MyClass.class);
```* http client
[WIP]
### Contribute
Welcome! You can absolutely contribute to this project. Please fork the repository, make the necessary changes, validate and create a pull request.
### Verify the build locally
```
./gradlew build
```