接口 ClientHttpResponse
- 所有超级接口:
HttpMessage,ReactiveHttpInputMessage
- 所有已知实现类:
ClientHttpResponseDecorator,DefaultClientResponseBuilder.BuiltClientHttpResponse,HttpComponentsClientHttpResponse,JdkClientHttpResponse,JettyClientHttpResponse,ReactorClientHttpResponse,ReactorNetty2ClientHttpResponse
Represents a client-side reactive HTTP response.
- 从以下版本开始:
- 4.0
- 作者:
- Arjen Poutsma, Brian Clozel, Harry Yang
-
方法概要
修饰符和类型方法说明cn.taketoday.util.MultiValueMap<String,ResponseCookie> Return a read-only map of response cookies received from the server.default StringgetId()Return an id that represents the underlying connection, if available, or the request for the purpose of correlating log messages.intReturn the HTTP status code (potentially non-standard and not resolvable through theHttpStatusenum) as an integer.default HttpStatusCodeReturn the HTTP status code as anHttpStatusenum value.从接口继承的方法 cn.taketoday.http.HttpMessage
getHeaders从接口继承的方法 cn.taketoday.http.ReactiveHttpInputMessage
getBody
-
方法详细资料
-
getId
Return an id that represents the underlying connection, if available, or the request for the purpose of correlating log messages. -
getStatusCode
Return the HTTP status code as anHttpStatusenum value.- 返回:
- the HTTP status as an HttpStatus enum value (never
null) - 抛出:
IllegalArgumentException- in case of an unknown HTTP status code- 从以下版本开始:
- #getRawStatusCode()
- 另请参阅:
-
getRawStatusCode
int getRawStatusCode()Return the HTTP status code (potentially non-standard and not resolvable through theHttpStatusenum) as an integer.- 返回:
- the HTTP status as an integer value
- 另请参阅:
-
getCookies
cn.taketoday.util.MultiValueMap<String,ResponseCookie> getCookies()Return a read-only map of response cookies received from the server.
-