File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff 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< ; T> ;
8897- throwable is a CompletionException
You can’t perform that action at this time.
0 commit comments