Skip to content

Commit 89f42a2

Browse files
committed
Update README
1 parent 6212d5c commit 89f42a2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ A lightweight wrapper to the [JDK 11+ Java Http Client](http://openjdk.java.net/
2424
<dependency>
2525
<groupId>io.avaje</groupId>
2626
<artifactId>avaje-http-client</artifactId>
27-
<version>1.14</version>
27+
<version>1.17</version>
2828
</dependency>
2929
```
3030

@@ -83,6 +83,15 @@ HttpResponse<String> hres = clientContext.request()
8383
.GET()
8484
.asString();
8585
```
86+
87+
#### Example GET as JSON marshalling into a java class/dto
88+
```java
89+
CustomerDto customer = clientContext.request()
90+
.path("customers").path(42)
91+
.GET()
92+
.bean(CustomerDto.class);
93+
```
94+
8695
#### Example Async GET as String
8796
- All async requests use CompletableFuture&lt;T&gt;
8897
- throwable is a CompletionException

0 commit comments

Comments
 (0)