类 ReactorNetty2ClientHttpResponse
java.lang.Object
cn.taketoday.http.client.reactive.ReactorNetty2ClientHttpResponse
- 所有已实现的接口:
ClientHttpResponse,HttpMessage,ReactiveHttpInputMessage
ClientHttpResponse implementation for the Reactor Netty 2 (Netty 5) HTTP client.
This class is based on ReactorClientHttpResponse.
- 从以下版本开始:
- 4.0
- 作者:
- Violeta Georgieva, Harry Yang
- 另请参阅:
-
HttpClient
-
字段概要
字段修饰符和类型字段说明private final cn.taketoday.core.io.buffer.Netty5DataBufferFactoryprivate final HttpHeadersprivate final reactor.netty5.NettyInboundprivate static final cn.taketoday.logging.Loggerprivate final reactor.netty5.http.client.HttpClientResponseprivate final AtomicInteger -
构造器概要
构造器构造器说明ReactorNetty2ClientHttpResponse(reactor.netty5.http.client.HttpClientResponse response, reactor.netty5.Connection connection) Constructor that matches the inputs fromHttpClient.ResponseReceiver.responseConnection(BiFunction). -
方法概要
修饰符和类型方法说明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.netty5.handler.codec.http.headers.HttpSetCookie cookie) Return the HTTP status code as anHttpStatusenum value.private booleanmayHaveBody(HttpMethod method) (专用程序包) voidreleaseAfterCancel(HttpMethod method) Called byReactorNetty2ClientHttpConnectorwhen a cancellation is detected but the content has not been subscribed to.toString()
-
字段详细资料
-
logger
private static final cn.taketoday.logging.Logger logger -
response
private final reactor.netty5.http.client.HttpClientResponse response -
headers
-
inbound
private final reactor.netty5.NettyInbound inbound -
bufferFactory
private final cn.taketoday.core.io.buffer.Netty5DataBufferFactory bufferFactory -
state
-
-
构造器详细资料
-
ReactorNetty2ClientHttpResponse
public ReactorNetty2ClientHttpResponse(reactor.netty5.http.client.HttpClientResponse response, reactor.netty5.Connection connection) Constructor that matches the inputs fromHttpClient.ResponseReceiver.responseConnection(BiFunction).
-
-
方法详细资料
-
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)
-
getStatusCode
从接口复制的说明:ClientHttpResponseReturn the HTTP status code as anHttpStatusenum value.- 指定者:
getStatusCode在接口中ClientHttpResponse- 返回:
- the HTTP status as an HttpStatus enum value (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
@Nullable private static String getSameSite(io.netty5.handler.codec.http.headers.HttpSetCookie cookie) -
releaseAfterCancel
Called byReactorNetty2ClientHttpConnectorwhen 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
-