Package ru.tinkoff.kora.http.common
Interface HttpResponseEntity<T>
public interface HttpResponseEntity<T>
Русский: Описывает HTTP ответ как сущность с метаинформацией о коде ответа и заголовках
English: Describes an HTTP response as an entity with meta-information about the response code and headers
Пример / Example:
English: Describes an HTTP response as an entity with meta-information about the response code and headers
Пример / Example:
HttpResponseEntity.of(200, "OK")
-
Method Summary
Modifier and TypeMethodDescriptionbody()intcode()headers()static <T> HttpResponseEntity<T>of(int code, MutableHttpHeaders headers, T body) static <T> HttpResponseEntity<T>of(int code, T body)
-
Method Details
-
code
int code() -
headers
MutableHttpHeaders headers() -
body
-
of
-
of
-