MutableRequest |
MutableRequest.adapterCodec(AdapterCodec adapterCodec) |
Set's the AdapterCodec to be used for resolving this request's payload.
|
MutableRequest |
MutableRequest.apply(java.util.function.Consumer<? super MutableRequest> consumer) |
Calls the given consumer against this request.
|
MutableRequest |
MutableRequest.cacheControl(CacheControl cacheControl) |
Sets the Cache-Control header to the given value.
|
MutableRequest |
MutableRequest.copy() |
Returns a copy of this request that is independent of this instance.
|
static MutableRequest |
MutableRequest.copyOf(java.net.http.HttpRequest other) |
Returns a new MutableRequest that is a copy of the given request.
|
static MutableRequest |
MutableRequest.create() |
Returns a new MutableRequest.
|
static MutableRequest |
MutableRequest.create(java.lang.String uri) |
Returns a new MutableRequest with the given URI and a default GET method.
|
static MutableRequest |
MutableRequest.create(java.net.URI uri) |
Returns a new MutableRequest with the given URI and a default GET method.
|
MutableRequest |
MutableRequest.DELETE() |
|
static MutableRequest |
MutableRequest.DELETE(java.lang.String uri) |
Returns a new MutableRequest with the given URI and a DELETE method.
|
static MutableRequest |
MutableRequest.DELETE(java.net.URI uri) |
Returns a new MutableRequest with the given URI and a DELETE method.
|
MutableRequest |
MutableRequest.expectContinue(boolean enable) |
|
MutableRequest |
MutableRequest.GET() |
|
static MutableRequest |
MutableRequest.GET(java.lang.String uri) |
Returns a new MutableRequest with the given URI and a GET method.
|
static MutableRequest |
MutableRequest.GET(java.net.URI uri) |
Returns a new MutableRequest with the given URI and a GET method.
|
MutableRequest |
MutableRequest.HEAD() |
|
static MutableRequest |
MutableRequest.HEAD(java.lang.String uri) |
Returns a new MutableRequest with the given URI and a HEAD method.
|
static MutableRequest |
MutableRequest.HEAD(java.net.URI uri) |
Returns a new MutableRequest with the given URI and a HEAD method.
|
MutableRequest |
MutableRequest.header(java.lang.String name,
java.lang.String value) |
|
MutableRequest |
MutableRequest.headers(java.lang.String... headers) |
|
MutableRequest |
MutableRequest.headers(java.net.http.HttpHeaders headers) |
Adds each of the given HttpHeaders.
|
<T> MutableRequest |
MutableRequest.hint(java.lang.Class<T> type,
T value) |
|
MutableRequest |
MutableRequest.hints(java.util.function.Consumer<BodyAdapter.Hints.Builder> hintsMutator) |
|
MutableRequest |
MutableRequest.method(java.lang.String method,
java.lang.Object payload,
MediaType mediaType) |
Sets the request method and sets the payload to the given value.
|
MutableRequest |
MutableRequest.method(java.lang.String method,
java.net.http.HttpRequest.BodyPublisher bodyPublisher) |
|
<T> MutableRequest |
MutableRequest.method(java.lang.String method,
T payload,
TypeRef<T> typeRef,
MediaType mediaType) |
Sets the request method and sets the payload to the given value with an explicitly specified
type.
|
MutableRequest |
MutableRequest.PATCH(java.lang.Object payload,
MediaType mediaType) |
Sets the request method to PATCH and sets the payload to the given value.
|
static MutableRequest |
MutableRequest.PATCH(java.lang.String uri,
java.lang.Object payload,
MediaType mediaType) |
Returns a new MutableRequest with the given URI and a PATCH method.
|
static MutableRequest |
MutableRequest.PATCH(java.lang.String uri,
java.net.http.HttpRequest.BodyPublisher bodyPublisher) |
Returns a new MutableRequest with the given URI and a PATCH method.
|
static <T> MutableRequest |
MutableRequest.PATCH(java.lang.String uri,
T payload,
TypeRef<T> typeRef,
MediaType mediaType) |
Returns a new MutableRequest with the given URI and a PATCH method.
|
MutableRequest |
MutableRequest.PATCH(java.net.http.HttpRequest.BodyPublisher bodyPublisher) |
Sets the request method to PATCH and sets the body publisher to the given value.
|
static MutableRequest |
MutableRequest.PATCH(java.net.URI uri,
java.lang.Object payload,
MediaType mediaType) |
Returns a new MutableRequest with the given URI and a PATCH method.
|
static MutableRequest |
MutableRequest.PATCH(java.net.URI uri,
java.net.http.HttpRequest.BodyPublisher bodyPublisher) |
Returns a new MutableRequest with the given URI and a PATCH method.
|
static <T> MutableRequest |
MutableRequest.PATCH(java.net.URI uri,
T payload,
TypeRef<T> typeRef,
MediaType mediaType) |
Returns a new MutableRequest with the given URI and a PATCH method.
|
<T> MutableRequest |
MutableRequest.PATCH(T payload,
TypeRef<T> typeRef,
MediaType mediaType) |
Sets the request method to PATCH and sets the payload to the given value with an explicitly
specified type.
|
MutableRequest |
MutableRequest.POST(java.lang.Object payload,
MediaType mediaType) |
Sets the request method to POST and sets the payload to the given value.
|
static MutableRequest |
MutableRequest.POST(java.lang.String uri,
java.lang.Object payload,
MediaType mediaType) |
Returns a new MutableRequest with the given URI and a POST method.
|
static MutableRequest |
MutableRequest.POST(java.lang.String uri,
java.net.http.HttpRequest.BodyPublisher bodyPublisher) |
Returns a new MutableRequest with the given URI and a POST method.
|
static <T> MutableRequest |
MutableRequest.POST(java.lang.String uri,
T payload,
TypeRef<T> typeRef,
MediaType mediaType) |
Returns a new MutableRequest with the given URI and a POST method.
|
MutableRequest |
MutableRequest.POST(java.net.http.HttpRequest.BodyPublisher bodyPublisher) |
|
static MutableRequest |
MutableRequest.POST(java.net.URI uri,
java.lang.Object payload,
MediaType mediaType) |
Returns a new MutableRequest with the given URI and a POST method.
|
static MutableRequest |
MutableRequest.POST(java.net.URI uri,
java.net.http.HttpRequest.BodyPublisher bodyPublisher) |
Returns a new MutableRequest with the given URI and a POST method.
|
static <T> MutableRequest |
MutableRequest.POST(java.net.URI uri,
T payload,
TypeRef<T> typeRef,
MediaType mediaType) |
Returns a new MutableRequest with the given URI and a POST method.
|
<T> MutableRequest |
MutableRequest.POST(T payload,
TypeRef<T> typeRef,
MediaType mediaType) |
Sets the request method to POST and sets the payload to the given value with an explicitly
specified type.
|
MutableRequest |
MutableRequest.PUT(java.lang.Object payload,
MediaType mediaType) |
Sets the request method to PUT and sets the payload to the given value.
|
static MutableRequest |
MutableRequest.PUT(java.lang.String uri,
java.lang.Object payload,
MediaType mediaType) |
Returns a new MutableRequest with the given URI and a PUT method.
|
static MutableRequest |
MutableRequest.PUT(java.lang.String uri,
java.net.http.HttpRequest.BodyPublisher bodyPublisher) |
Returns a new MutableRequest with the given URI and a PUT method.
|
static <T> MutableRequest |
MutableRequest.PUT(java.lang.String uri,
T payload,
TypeRef<T> typeRef,
MediaType mediaType) |
Returns a new MutableRequest with the given URI and a PUT method.
|
MutableRequest |
MutableRequest.PUT(java.net.http.HttpRequest.BodyPublisher bodyPublisher) |
|
static MutableRequest |
MutableRequest.PUT(java.net.URI uri,
java.lang.Object payload,
MediaType mediaType) |
Returns a new MutableRequest with the given URI and a PUT method.
|
static MutableRequest |
MutableRequest.PUT(java.net.URI uri,
java.net.http.HttpRequest.BodyPublisher bodyPublisher) |
Returns a new MutableRequest with the given URI and a PUT method.
|
static <T> MutableRequest |
MutableRequest.PUT(java.net.URI uri,
T payload,
TypeRef<T> typeRef,
MediaType mediaType) |
Returns a new MutableRequest with the given URI and a PUT method.
|
<T> MutableRequest |
MutableRequest.PUT(T payload,
TypeRef<T> typeRef,
MediaType mediaType) |
Sets the request method to PUT and sets the payload to the given value with an explicitly
specified type.
|
MutableRequest |
MutableRequest.removeHeader(java.lang.String name) |
Removes any header associated with the given name.
|
MutableRequest |
MutableRequest.removeHeaders() |
Removes all headers added so far.
|
MutableRequest |
MutableRequest.removeHeadersIf(java.util.function.BiPredicate<java.lang.String,java.lang.String> filter) |
Removes all headers matched by the given predicate.
|
MutableRequest |
MutableRequest.removeTag(TypeRef<?> typeRef) |
|
MutableRequest |
MutableRequest.removeTag(java.lang.Class<?> type) |
|
MutableRequest |
MutableRequest.setHeader(java.lang.String name,
java.lang.String value) |
|
MutableRequest |
MutableRequest.setHeader(java.lang.String name,
java.util.List<java.lang.String> values) |
|
MutableRequest |
MutableRequest.setHeaderIfAbsent(java.lang.String name,
java.lang.String value) |
|
MutableRequest |
MutableRequest.setHeaderIfAbsent(java.lang.String name,
java.util.List<java.lang.String> values) |
|
<T> MutableRequest |
MutableRequest.tag(TypeRef<T> typeRef,
T value) |
|
<T> MutableRequest |
MutableRequest.tag(java.lang.Class<T> type,
T value) |
|
MutableRequest |
MutableRequest.tag(java.lang.Object value) |
|
MutableRequest |
MutableRequest.timeout(java.time.Duration timeout) |
|
MutableRequest |
MutableRequest.uri(java.lang.String uri) |
Sets this request's URI.
|
MutableRequest |
MutableRequest.uri(java.net.URI uri) |
Sets this request's URI.
|
MutableRequest |
MutableRequest.version(java.net.http.HttpClient.Version version) |
|