public class ReactorClientHttpResponse extends java.lang.Object implements ClientHttpResponse
ClientHttpResponse
implementation for the Reactor-Netty HTTP client.reactor.ipc.netty.http.client.HttpClient
Modifier and Type | Field and Description |
---|---|
private NettyDataBufferFactory |
dataBufferFactory |
private HttpClientResponse |
response |
Constructor and Description |
---|
ReactorClientHttpResponse(HttpClientResponse response) |
Modifier and Type | Method and Description |
---|---|
<any> |
getBody()
Return the body of the message as a
Publisher . |
MultiValueMap<java.lang.String,ResponseCookie> |
getCookies()
Return a read-only map of response cookies received from the server.
|
HttpHeaders |
getHeaders()
Return the headers of this message.
|
HttpStatus |
getStatusCode() |
java.lang.String |
toString() |
private final NettyDataBufferFactory dataBufferFactory
private final HttpClientResponse response
public ReactorClientHttpResponse(HttpClientResponse response)
public <any> getBody()
ReactiveHttpInputMessage
Publisher
.getBody
in interface ReactiveHttpInputMessage
public HttpHeaders getHeaders()
HttpMessage
getHeaders
in interface HttpMessage
null
)public HttpStatus getStatusCode()
getStatusCode
in interface ClientHttpResponse
HttpStatus
enum valuepublic MultiValueMap<java.lang.String,ResponseCookie> getCookies()
ClientHttpResponse
getCookies
in interface ClientHttpResponse
public java.lang.String toString()
toString
in class java.lang.Object