K - - key for the output topicB - - body for Http requestpublic final class HttpRequest<K,B> extends Object
| Modifier and Type | Class | Description |
|---|---|---|
static interface |
HttpRequest.HttpRequestDecoder<A,K,B> |
|
static class |
HttpRequest.HttpVerb |
| Modifier and Type | Field | Description |
|---|---|---|
Optional<B> |
body |
|
Map<String,String> |
headers |
|
K |
key |
|
Optional<String> |
topicName |
|
String |
url |
|
HttpRequest.HttpVerb |
verb |
| Constructor | Description |
|---|---|
HttpRequest() |
| Modifier and Type | Method | Description |
|---|---|---|
static <K> HttpRequest<K,?> |
of(K key,
HttpRequest.HttpVerb verb,
String url) |
|
static <K> HttpRequest<K,?> |
of(K key,
HttpRequest.HttpVerb verb,
String url,
String topicName) |
|
static <K,B> HttpRequest<K,B> |
ofWithBody(K key,
HttpRequest.HttpVerb verb,
String url,
String topicName,
B body) |
public final K key
public final HttpRequest.HttpVerb verb
public final String url
public static <K> HttpRequest<K,?> of(K key, HttpRequest.HttpVerb verb, String url)
public static <K> HttpRequest<K,?> of(K key, HttpRequest.HttpVerb verb, String url, String topicName)
public static <K,B> HttpRequest<K,B> ofWithBody(K key, HttpRequest.HttpVerb verb, String url, String topicName, B body)
Copyright © 2019. All rights reserved.