public final class Requester extends Dispatcher
| Constructor and Description |
|---|
Requester(org.springframework.http.client.AsyncClientHttpRequestFactory requestFactory,
org.zalando.riptide.MessageWorker worker,
RequestArguments arguments,
Plugin plugin) |
| Modifier and Type | Method and Description |
|---|---|
Requester |
accept(org.springframework.http.MediaType acceptableMediaType,
org.springframework.http.MediaType... acceptableMediaTypes) |
<T> Dispatcher |
body(T body) |
CompletableFuture<Void> |
call(Route route) |
Requester |
contentType(org.springframework.http.MediaType contentType) |
Requester |
header(String name,
String value) |
Requester |
headers(org.springframework.http.HttpHeaders headers) |
Requester |
queryParam(String name,
String value) |
Requester |
queryParams(com.google.common.collect.Multimap<String,String> params) |
dispatch, dispatch, dispatchpublic Requester(org.springframework.http.client.AsyncClientHttpRequestFactory requestFactory,
org.zalando.riptide.MessageWorker worker,
RequestArguments arguments,
Plugin plugin)
public final Requester queryParams(com.google.common.collect.Multimap<String,String> params)
public final Requester headers(org.springframework.http.HttpHeaders headers)
public final Requester accept(org.springframework.http.MediaType acceptableMediaType, org.springframework.http.MediaType... acceptableMediaTypes)
public final Requester contentType(org.springframework.http.MediaType contentType)
public final <T> Dispatcher body(@Nullable T body)
public CompletableFuture<Void> call(Route route)
call in class DispatcherCopyright © 2015–2017 Zalando SE. All rights reserved.