static final class HttpBuilder.Config
extends Object
| Type | Name and description |
|---|---|
URI |
baseUri |
Closure<?> |
clientConfigurer |
Duration |
connectTimeout |
boolean |
followRedirects |
Map<String, String> |
headers |
Duration |
requestTimeout |
| Constructor and description |
|---|
HttpBuilder.Config() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
baseUri(Object value) |
|
void |
clientConfig(Closure<?> configurer)Provides direct access to the underlying HttpClient.Builder
for advanced configuration (authenticator, SSL context, proxy, cookie handler, etc.). |
|
void |
connectTimeout(Duration value) |
|
void |
followRedirects(boolean value) |
|
void |
header(String name, Object value) |
|
void |
headers(Map<String, ?> values) |
|
void |
requestTimeout(Duration value) |
Provides direct access to the underlying HttpClient.Builder
for advanced configuration (authenticator, SSL context, proxy, cookie handler, etc.).
configurer - a closure taking an HttpClient.BuilderCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.