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