def http = HttpBuilder.configure {
execution.maxThreads = 2
execution.executor = Executors.newFixedThreadPool(2)
}
public interface HttpObjectConfig extends HttpConfig
Extension of the HttpConfig
interface, which provides additional client-level configuration options. These options should be configured in
the HttpBuilder
configure()
closure, rather than in the verb configuration closure.
def http = HttpBuilder.configure {
execution.maxThreads = 2
execution.executor = Executors.newFixedThreadPool(2)
}
Modifier and Type | Interface and Description |
---|---|
static interface |
HttpObjectConfig.Client
The
Client configuration interface allows configuration of client-centric properties. |
static interface |
HttpObjectConfig.Execution
The
Execution configuration interface provides a means of configuring the execution-specific properties of the underlying HTTP client. |
HttpConfig.Auth, HttpConfig.AuthType, HttpConfig.Request, HttpConfig.Response, HttpConfig.Status
Modifier and Type | Method and Description |
---|---|
ChainedHttpConfig |
getChainedConfig() |
HttpObjectConfig.Client |
getClient()
Retrieves the client configuration interface implementation.
|
HttpObjectConfig.Execution |
getExecution()
Retrieves the execution configuration interface implementation.
|
context, context, getRequest, getResponse
ChainedHttpConfig getChainedConfig()
HttpObjectConfig.Execution getExecution()
Retrieves the execution configuration interface implementation.
Execution
configuration instanceHttpObjectConfig.Client getClient()
Retrieves the client configuration interface implementation.
Client
configuration instance