Package | Description |
---|---|
ratpack.http.client |
The HTTP client.
|
ratpack.retrofit |
Integration with Retrofit.
|
ratpack.sse |
Support for Server Sent Events.
|
Modifier and Type | Method and Description |
---|---|
HttpClient |
HttpClient.copyWith(Action<? super HttpClientSpec> action)
Create a new HttpClient by appending the provided configuration to this client.
|
static HttpClient |
HttpClient.httpClient(io.netty.buffer.ByteBufAllocator byteBufAllocator,
int maxContentLengthBytes)
Deprecated.
since 1.4, use
of(Action) |
static HttpClient |
HttpClient.httpClient(ServerConfig serverConfig,
Registry registry)
Deprecated.
since 1.4, use
of(Action) |
static HttpClient |
HttpClient.of(Action<? super HttpClientSpec> action)
Creates a new HTTP client.
|
Modifier and Type | Method and Description |
---|---|
RatpackRetrofit.Builder |
RatpackRetrofit.Builder.httpClient(Factory<? extends HttpClient> clientFactory)
Configures a
Factory that supplies the underlying HttpClient to back
client interfaces generated from the return of RatpackRetrofit.Builder.retrofit() |
Modifier and Type | Method and Description |
---|---|
static ServerSentEventStreamClient |
ServerSentEventStreamClient.of(HttpClient httpClient)
Creates an SSE client.
|