类 HttpComponentsClientHttpResponse
java.lang.Object
cn.taketoday.http.client.reactive.HttpComponentsClientHttpResponse
- 所有已实现的接口:
ClientHttpResponse,HttpMessage,ReactiveHttpInputMessage
ClientHttpResponse implementation for the Apache HttpComponents HttpClient 5.x.- 从以下版本开始:
- 4.0
- 作者:
- Martin Tarjányi, Arjen Poutsma
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明private final HttpClientContextprivate final cn.taketoday.core.io.buffer.DataBufferFactoryprivate final HttpHeadersprivate final org.apache.hc.core5.http.Message<org.apache.hc.core5.http.HttpResponse,org.reactivestreams.Publisher<ByteBuffer>> private final AtomicBoolean -
构造器概要
构造器构造器说明HttpComponentsClientHttpResponse(cn.taketoday.core.io.buffer.DataBufferFactory dataBufferFactory, org.apache.hc.core5.http.Message<org.apache.hc.core5.http.HttpResponse, org.reactivestreams.Publisher<ByteBuffer>> message, HttpClientContext context) -
方法概要
修饰符和类型方法说明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.private longgetMaxAgeSeconds(Cookie cookie) intReturn the HTTP status code (potentially non-standard and not resolvable through theHttpStatusenum) as an integer.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cn.taketoday.http.client.reactive.ClientHttpResponse
getId, getStatusCode
-
字段详细资料
-
dataBufferFactory
private final cn.taketoday.core.io.buffer.DataBufferFactory dataBufferFactory -
message
private final org.apache.hc.core5.http.Message<org.apache.hc.core5.http.HttpResponse,org.reactivestreams.Publisher<ByteBuffer>> message -
headers
-
context
-
rejectSubscribers
-
-
构造器详细资料
-
HttpComponentsClientHttpResponse
public HttpComponentsClientHttpResponse(cn.taketoday.core.io.buffer.DataBufferFactory dataBufferFactory, org.apache.hc.core5.http.Message<org.apache.hc.core5.http.HttpResponse, org.reactivestreams.Publisher<ByteBuffer>> message, HttpClientContext context)
-
-
方法详细资料
-
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
-
getMaxAgeSeconds
-
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)
-