public interface Client
Modifier and Type | Method and Description |
---|---|
Stream<Exception> |
close() |
Object |
getClient() |
void |
registerShutdownHook() |
<T> HttpResponse<T> |
request(HttpRequest request,
Function<RawResponse,HttpResponse<T>> transformer)
Deprecated.
use the version with the resultType
|
default <T> HttpResponse<T> |
request(HttpRequest request,
Function<RawResponse,HttpResponse<T>> transformer,
Class<?> resultType)
Make a request
|
Object getClient()
@Deprecated <T> HttpResponse<T> request(HttpRequest request, Function<RawResponse,HttpResponse<T>> transformer)
T
- The type of the bodyrequest
- the prepared request objecttransformer
- the function to transform the responsedefault <T> HttpResponse<T> request(HttpRequest request, Function<RawResponse,HttpResponse<T>> transformer, Class<?> resultType)
T
- The type of the bodyrequest
- the prepared request objecttransformer
- the function to transform the responseresultType
- the final body result type. This is a hint to downstream systems to make up for type erasure.Stream<Exception> close()
void registerShutdownHook()
Copyright © 2020. All rights reserved.