Package | Description |
---|---|
ratpack.http.client |
The HTTP client.
|
Modifier and Type | Method and Description |
---|---|
HttpClientSpec |
HttpClientSpec.byteBufAllocator(ByteBufAllocator byteBufAllocator)
The buffer allocator to use.
|
HttpClientSpec |
HttpClientSpec.connectTimeout(Duration connectTimeout)
The read timeout value for responses.
|
HttpClientSpec |
HttpClientSpec.maxContentLength(int maxContentLength)
The maximum size to allow for responses.
|
HttpClientSpec |
HttpClientSpec.poolSize(int poolSize)
The maximum number of connections to maintain to a given protocol/host/port.
|
HttpClientSpec |
HttpClientSpec.readTimeout(Duration readTimeout)
The read timeout value for responses.
|
HttpClientSpec |
HttpClientSpec.responseMaxChunkSize(int numBytes)
The max size of the chunks to emit when reading a response as a stream.
|
Modifier and Type | Method and Description |
---|---|
static HttpClient |
HttpClient.of(Action<? super HttpClientSpec> action)
Creates a new HTTP client.
|