ClientHttpResponse implementation for the Reactor-Netty HTTP client.
reactor.netty.http.client.HttpClient
| Modifier and Type | Field and Description |
|---|---|
| private final NettyDataBufferFactory | |
| private final HttpHeaders | |
| private final NettyInbound | |
| private static final Log | |
| private final HttpClientResponse | |
| private final AtomicInteger |
| Access | Constructor and Description |
|---|---|
| public | ReactorClientHttpResponse(HttpClientResponse response, Connection connection)
Constructor that matches the inputs from
|
| public | ReactorClientHttpResponse(HttpClientResponse response, NettyInbound inbound, ByteBufAllocator alloc)
Deprecated
as of 5.2.8, in favor of
Constructor with inputs extracted from a ReactorClientHttpResponse(HttpClientResponse, Connection)
Connection.
|
| Modifier and Type | Method and Description |
|---|---|
| public Flux | getBody()
Implements org. Publisher.
|
| public MultiValueMap | getCookies()
Implements org. |
| public HttpHeaders | getHeaders()
Implements org. |
| public String | getId()
Overrides default org. |
| private static String | |
| public HttpStatusCode | getStatusCode()
Implements org. HttpStatusCode.
|
| private boolean | |
| pack-priv void | releaseAfterCancel(HttpMethod method)
Called by |
| public String |
| bufferFactory | back to summary |
|---|---|
| private final NettyDataBufferFactory bufferFactory | |
| headers | back to summary |
|---|---|
| private final HttpHeaders headers | |
| inbound | back to summary |
|---|---|
| private final NettyInbound inbound | |
| logger | back to summary |
|---|---|
| private static final Log logger | |
| response | back to summary |
|---|---|
| private final HttpClientResponse response | |
| state | back to summary |
|---|---|
| private final AtomicInteger state | |
| ReactorClientHttpResponse | back to summary |
|---|---|
| public ReactorClientHttpResponse(HttpClientResponse response, Connection connection) Constructor that matches the inputs from
| |
| ReactorClientHttpResponse | back to summary |
|---|---|
| public ReactorClientHttpResponse(HttpClientResponse response, NettyInbound inbound, ByteBufAllocator alloc)
Deprecated as of 5.2.8, in favor of Constructor with inputs extracted from a
| |
| getBody | back to summary |
|---|---|
| public Flux Implements org. Doc from org. Return the body of the message as a
| |
| getCookies | back to summary |
|---|---|
| public MultiValueMap Implements org. Doc from org. Return a read-only map of response cookies received from the server.
| |
| getHeaders | back to summary |
|---|---|
| public HttpHeaders getHeaders() Implements org. Doc from org. Return the headers of this message.
| |
| getId | back to summary |
|---|---|
| public String getId() Overrides default org. Doc from org. Return an id that represents the underlying connection, if available, or the request for the purpose of correlating log messages.
| |
| getSameSite | back to summary |
|---|---|
private static String getSameSite(Cookie cookie)
| |
| getStatusCode | back to summary |
|---|---|
| public HttpStatusCode getStatusCode() Implements org. Doc from org. Return the HTTP status code as an
| |
| mayHaveBody | back to summary |
|---|---|
| private boolean mayHaveBody(HttpMethod method) | |
| releaseAfterCancel | back to summary |
|---|---|
| pack-priv void releaseAfterCancel(HttpMethod method) Called by | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |