-
-
Methods Summary
Methods
| Type Params |
Return Type |
Name and description |
|
HttpResult |
delete(Object uri, Closure<?> spec)
|
|
CompletableFuture<HttpResult> |
deleteAsync(Object uri, Closure<?> spec)
|
|
HttpResult |
get(Object uri, Closure<?> spec)
|
|
CompletableFuture<HttpResult> |
getAsync(Object uri, Closure<?> spec)
|
|
CompletableFuture<HttpStreamResult> |
getStreamAsync(Object uri, Closure<?> spec)
|
|
static HttpBuilder |
http(Closure<?> spec)
|
|
static HttpBuilder |
http(String baseUri)
|
|
HttpResult |
patch(Object uri, Closure<?> spec)
|
|
CompletableFuture<HttpResult> |
patchAsync(Object uri, Closure<?> spec)
|
|
HttpResult |
post(Object uri, Closure<?> spec)
|
|
CompletableFuture<HttpResult> |
postAsync(Object uri, Closure<?> spec)
|
|
CompletableFuture<HttpStreamResult> |
postStreamAsync(Object uri, Closure<?> spec)
|
|
HttpResult |
put(Object uri, Closure<?> spec)
|
|
CompletableFuture<HttpResult> |
putAsync(Object uri, Closure<?> spec)
|
|
HttpResult |
request(String method, Object uri, Closure<?> spec)
|
|
CompletableFuture<HttpResult> |
requestAsync(String method, Object uri, Closure<?> spec)
|
|
CompletableFuture<HttpStreamResult> |
streamAsync(String method, Object uri, Closure<?> spec) Streams the response body without buffering. |
-
Inherited Methods Summary
-
-
Method Detail
-
Streams the response body without buffering. Returns an
HttpStreamResult whose bodyAsPublisher() delivers
List<ByteBuffer> chunks as they arrive — enabling
for await (chunk in result.bodyAsPublisher()) via the
FlowPublisherAdapter.
Streaming always uses HttpResponse.BodyHandlers.ofPublisher();
any bodyHandler configured on the RequestSpec is ignored.
- | Detail:
Field Constructor - Method
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.