接口 ClientHttpResponse
- 所有超级接口:
HttpMessage
,ReactiveHttpInputMessage
public interface ClientHttpResponse extends ReactiveHttpInputMessage
Represents a client-side reactive HTTP response.- 从以下版本开始:
- 5.0
- 作者:
- Arjen Poutsma, Brian Clozel
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 MultiValueMap<String,ResponseCookie>
getCookies()
Return a read-only map of response cookies received from the server.int
getRawStatusCode()
Return the HTTP status code (potentially non-standard and not resolvable through theHttpStatus
enum) as an integer.HttpStatus
getStatusCode()
Return the HTTP status code as anHttpStatus
enum value.从接口继承的方法 org.springframework.http.HttpMessage
getHeaders
从接口继承的方法 org.springframework.http.ReactiveHttpInputMessage
getBody
方法详细资料
getStatusCode
HttpStatus getStatusCode()
Return the HTTP status code as anHttpStatus
enum value.- 返回:
- the HTTP status as an HttpStatus enum value (never
null
) - 抛出:
IllegalArgumentException
- in case of an unknown HTTP status code- 从以下版本开始:
- #getRawStatusCode()
- 另请参阅:
HttpStatus.valueOf(int)
getRawStatusCode
int getRawStatusCode()
Return the HTTP status code (potentially non-standard and not resolvable through theHttpStatus
enum) as an integer.- 返回:
- the HTTP status as an integer value
- 从以下版本开始:
- 5.0.6
- 另请参阅:
getStatusCode()
,HttpStatus.resolve(int)
getCookies
MultiValueMap<String,ResponseCookie> getCookies()
Return a read-only map of response cookies received from the server.