| Package | Description |
|---|---|
| com.linecorp.armeria.server.annotation |
Annotations for building a RESTful service.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> HttpResult<T> |
HttpResult.of(HttpHeaders headers)
Creates a new
HttpResult with the specified headers and without content. |
static <T> HttpResult<T> |
HttpResult.of(HttpHeaders headers,
T content)
Creates a new
HttpResult with the specified headers and content. |
static <T> HttpResult<T> |
HttpResult.of(HttpHeaders headers,
T content,
HttpHeaders trailers)
Creates a new
HttpResult with the specified headers, content and trailers. |
static <T> HttpResult<T> |
HttpResult.of(HttpStatus status)
Creates a new
HttpResult with the specified HttpStatus and without content. |
static <T> HttpResult<T> |
HttpResult.of(HttpStatus status,
T content)
Creates a new
HttpResult with the specified HttpStatus and content. |
static <T> HttpResult<T> |
HttpResult.of(HttpStatus status,
T content,
HttpHeaders trailers)
Creates a new
HttpResult with the specified HttpStatus, content and trailers. |
static <T> HttpResult<T> |
HttpResult.of(T content)
Creates a new
HttpResult with the specified content and the HttpStatus.OK status. |
Copyright © 2020 LeanCloud. All rights reserved.