public class ReactorClientHttpResponse extends Object implements ClientHttpResponse
ClientHttpResponse
implementation for the Reactor-Netty HTTP client.HttpClient
Constructor and Description |
---|
ReactorClientHttpResponse(reactor.ipc.netty.http.client.HttpClientResponse response) |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Flux<DataBuffer> |
getBody()
Return the body of the message as a
Publisher . |
MultiValueMap<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()
Return the HTTP status as an
HttpStatus enum value. |
String |
toString() |
public ReactorClientHttpResponse(reactor.ipc.netty.http.client.HttpClientResponse response)
public reactor.core.publisher.Flux<DataBuffer> getBody()
ReactiveHttpInputMessage
Publisher
.getBody
in interface ReactiveHttpInputMessage
public HttpHeaders getHeaders()
HttpMessage
getHeaders
in interface HttpMessage
null
)public HttpStatus getStatusCode()
ClientHttpResponse
HttpStatus
enum value.getStatusCode
in interface ClientHttpResponse
public MultiValueMap<String,ResponseCookie> getCookies()
ClientHttpResponse
getCookies
in interface ClientHttpResponse