类 ReactorClientHttpResponse
java.lang.Object
cn.taketoday.http.client.reactive.ReactorClientHttpResponse
- 所有已实现的接口:
ClientHttpResponse,HttpMessage,ReactiveHttpInputMessage
ClientHttpResponse implementation for the Reactor-Netty HTTP client.- 从以下版本开始:
- 4.0
- 作者:
- Brian Clozel, Rossen Stoyanchev, Harry Yang
- 另请参阅:
-
HttpClient
-
字段概要
字段修饰符和类型字段说明private final cn.taketoday.core.io.buffer.NettyDataBufferFactoryprivate final HttpHeadersprivate final reactor.netty.NettyInboundprivate static final cn.taketoday.logging.Loggerprivate final reactor.netty.http.client.HttpClientResponseprivate final AtomicInteger -
构造器概要
构造器构造器说明ReactorClientHttpResponse(reactor.netty.http.client.HttpClientResponse response, reactor.netty.Connection connection) Constructor that matches the inputs fromHttpClient.ResponseReceiver.responseConnection(BiFunction).ReactorClientHttpResponse(reactor.netty.http.client.HttpClientResponse response, reactor.netty.NettyInbound inbound, io.netty.buffer.ByteBufAllocator alloc) Constructor with inputs extracted from aConnection. -
方法概要
修饰符和类型方法说明reactor.core.publisher.Flux<cn.taketoday.core.io.buffer.DataBuffer>getBody()Return the body of the message as aPublisher.cn.taketoday.util.MultiValueMap<String,ResponseCookie> Return a read-only map of response cookies received from the server.Return the headers of this message.getId()Return an id that represents the underlying connection, if available, or the request for the purpose of correlating log messages.intReturn the HTTP status code (potentially non-standard and not resolvable through theHttpStatusenum) as an integer.private static StringgetSameSite(io.netty.handler.codec.http.cookie.Cookie cookie) private booleanmayHaveBody(HttpMethod method) (专用程序包) voidreleaseAfterCancel(HttpMethod method) Called byReactorClientHttpConnectorwhen a cancellation is detected but the content has not been subscribed to.toString()从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 cn.taketoday.http.client.reactive.ClientHttpResponse
getStatusCode
-
字段详细资料
-
logger
private static final cn.taketoday.logging.Logger logger -
headers
-
inbound
private final reactor.netty.NettyInbound inbound -
response
private final reactor.netty.http.client.HttpClientResponse response -
bufferFactory
private final cn.taketoday.core.io.buffer.NettyDataBufferFactory bufferFactory -
state
-
-
构造器详细资料
-
ReactorClientHttpResponse
public ReactorClientHttpResponse(reactor.netty.http.client.HttpClientResponse response, reactor.netty.Connection connection) Constructor that matches the inputs fromHttpClient.ResponseReceiver.responseConnection(BiFunction). -
ReactorClientHttpResponse
public ReactorClientHttpResponse(reactor.netty.http.client.HttpClientResponse response, reactor.netty.NettyInbound inbound, io.netty.buffer.ByteBufAllocator alloc) Constructor with inputs extracted from aConnection.
-
-
方法详细资料
-
getId
从接口复制的说明:ClientHttpResponseReturn an id that represents the underlying connection, if available, or the request for the purpose of correlating log messages.- 指定者:
getId在接口中ClientHttpResponse
-
getBody
public reactor.core.publisher.Flux<cn.taketoday.core.io.buffer.DataBuffer> getBody()从接口复制的说明:ReactiveHttpInputMessageReturn the body of the message as aPublisher.- 指定者:
getBody在接口中ReactiveHttpInputMessage- 返回:
- the body content publisher
-
getHeaders
从接口复制的说明:HttpMessageReturn the headers of this message.- 指定者:
getHeaders在接口中HttpMessage- 返回:
- a corresponding HttpHeaders object (never
null)
-
getRawStatusCode
public int getRawStatusCode()从接口复制的说明:ClientHttpResponseReturn the HTTP status code (potentially non-standard and not resolvable through theHttpStatusenum) as an integer.- 指定者:
getRawStatusCode在接口中ClientHttpResponse- 返回:
- the HTTP status as an integer value
- 另请参阅:
-
getCookies
从接口复制的说明:ClientHttpResponseReturn a read-only map of response cookies received from the server.- 指定者:
getCookies在接口中ClientHttpResponse
-
getSameSite
-
releaseAfterCancel
Called byReactorClientHttpConnectorwhen a cancellation is detected but the content has not been subscribed to. If the subscription never materializes then the content will remain not drained. Or it could still materialize if the cancellation happened very early, or the response reading was delayed for some reason. -
mayHaveBody
-
toString
-