Top Description Methods
org.springframework.http.client.reactive

public Interface ClientHttpResponse

extends ReactiveHttpInputMessage
Known Direct Implementers
org.springframework.http.client.reactive.ClientHttpResponseDecorator, org.springframework.http.client.reactive.ReactorClientHttpResponse, org.springframework.http.client.reactive.ReactorNetty2ClientHttpResponse, org.springframework.http.client.reactive.AbstractClientHttpResponse
Imports
org.springframework.http.HttpStatusCode, .ReactiveHttpInputMessage, .ResponseCookie, org.springframework.util.MultiValueMap, .ObjectUtils

Represents a client-side reactive HTTP response.
Authors
Arjen Poutsma, Brian Clozel
Since
5.0

Method Summary

Modifier and TypeMethod and Description
public MultiValueMap<String, ResponseCookie>
getCookies()

Return a read-only map of response cookies received from the server.

public default String
getId()

Return an id that represents the underlying connection, if available, or the request for the purpose of correlating log messages.

public HttpStatusCode

Returns:

the HTTP status as HttpStatusCode value (never null)
getStatusCode
()

Return the HTTP status code as an HttpStatusCode.

Inherited from org.springframework.http.ReactiveHttpInputMessage:
getBody

Method Detail

getCookiesback to summary
public MultiValueMap<String, ResponseCookie> getCookies()

Return a read-only map of response cookies received from the server.

getIdback to summary
public default String getId()

Return an id that represents the underlying connection, if available, or the request for the purpose of correlating log messages.

Since
5.3.5
getStatusCodeback to summary
public HttpStatusCode getStatusCode()

Return the HTTP status code as an HttpStatusCode.

Returns:HttpStatusCode

the HTTP status as HttpStatusCode value (never null)