| Package | Description |
|---|---|
| com.linecorp.armeria.common |
Common types.
|
| com.linecorp.armeria.server |
Server core.
|
| com.linecorp.armeria.server.healthcheck |
HTTP health check service for load balancers.
|
| Modifier and Type | Method and Description |
|---|---|
static AggregatedHttpResponse |
AggregatedHttpResponse.of(HttpStatus status)
Creates a new HTTP response.
|
static AggregatedHttpResponse |
AggregatedHttpResponse.of(HttpStatus status,
MediaType mediaType,
byte[] content)
Creates a new HTTP response of the specified
HttpStatus. |
static AggregatedHttpResponse |
AggregatedHttpResponse.of(HttpStatus status,
MediaType mediaType,
CharSequence content)
Creates a new HTTP response of the specified
HttpStatus. |
static AggregatedHttpResponse |
AggregatedHttpResponse.of(HttpStatus status,
MediaType mediaType,
HttpData content)
Creates a new HTTP response of the specified
HttpStatus. |
static AggregatedHttpResponse |
AggregatedHttpResponse.of(HttpStatus status,
MediaType mediaType,
HttpData content,
HttpHeaders trailers)
Creates a new HTTP response of the specified
HttpStatus. |
static AggregatedHttpResponse |
AggregatedHttpResponse.of(HttpStatus status,
MediaType mediaType,
String content)
Creates a new HTTP response of the specified
HttpStatus. |
static AggregatedHttpResponse |
AggregatedHttpResponse.of(HttpStatus status,
MediaType mediaType,
String format,
Object... args)
Creates a new HTTP response of the specified
HttpStatus. |
static AggregatedHttpResponse |
AggregatedHttpResponse.of(int statusCode)
Creates a new HTTP response.
|
static AggregatedHttpResponse |
AggregatedHttpResponse.of(Iterable<ResponseHeaders> informationals,
ResponseHeaders headers,
HttpData content,
HttpHeaders trailers)
Creates a new HTTP response.
|
static AggregatedHttpResponse |
AggregatedHttpResponse.of(ResponseHeaders headers)
Creates a new HTTP response with empty content.
|
static AggregatedHttpResponse |
AggregatedHttpResponse.of(ResponseHeaders headers,
HttpData content)
Creates a new HTTP response.
|
static AggregatedHttpResponse |
AggregatedHttpResponse.of(ResponseHeaders headers,
HttpData content,
HttpHeaders trailers)
Creates a new HTTP response.
|
| Modifier and Type | Method and Description |
|---|---|
default CompletableFuture<AggregatedHttpResponse> |
HttpResponse.aggregate()
Aggregates this response.
|
default CompletableFuture<AggregatedHttpResponse> |
HttpResponse.aggregate(io.netty.util.concurrent.EventExecutor executor)
Aggregates this response.
|
default CompletableFuture<AggregatedHttpResponse> |
HttpResponse.aggregateWithPooledObjects(io.netty.buffer.ByteBufAllocator alloc)
Aggregates this response.
|
default CompletableFuture<AggregatedHttpResponse> |
HttpResponse.aggregateWithPooledObjects(io.netty.util.concurrent.EventExecutor executor,
io.netty.buffer.ByteBufAllocator alloc)
Aggregates this response.
|
| Modifier and Type | Method and Description |
|---|---|
default void |
HttpResponseWriter.close(AggregatedHttpResponse res)
Writes the specified HTTP response and closes the stream.
|
static HttpResponse |
HttpResponse.delayed(AggregatedHttpResponse response,
Duration delay)
Creates a new HTTP response that delegates to the provided
AggregatedHttpResponse, beginning
publishing after delay has passed from a random ScheduledExecutorService. |
static HttpResponse |
HttpResponse.delayed(AggregatedHttpResponse response,
Duration delay,
ScheduledExecutorService executor)
Creates a new HTTP response that delegates to the provided
AggregatedHttpResponse, beginning
publishing after delay has passed from the provided ScheduledExecutorService. |
static HttpResponse |
HttpResponse.of(AggregatedHttpResponse res)
Deprecated.
Use
toHttpResponse(). |
| Modifier and Type | Method and Description |
|---|---|
static HttpResponseException |
HttpResponseException.of(AggregatedHttpResponse aggregatedResponse)
Returns a new
HttpResponseException instance with the specified AggregatedHttpResponse. |
| Modifier and Type | Method and Description |
|---|---|
protected AggregatedHttpResponse |
HttpHealthCheckService.newHealthyResponse(ServiceRequestContext ctx)
Deprecated.
Creates a new response which is sent when the
Server is healthy. |
protected AggregatedHttpResponse |
HttpHealthCheckService.newUnhealthyResponse(ServiceRequestContext ctx)
Deprecated.
Creates a new response which is sent when the
Server is unhealthy. |
| Modifier and Type | Method and Description |
|---|---|
HealthCheckServiceBuilder |
HealthCheckServiceBuilder.healthyResponse(AggregatedHttpResponse healthyResponse)
Sets the
AggregatedHttpResponse to send when the Service is healthy. |
HealthCheckServiceBuilder |
HealthCheckServiceBuilder.unhealthyResponse(AggregatedHttpResponse unhealthyResponse)
Sets the
AggregatedHttpResponse to send when the Service is unhealthy. |
Copyright © 2020 LeanCloud. All rights reserved.