类 JdkClientHttpResponse
java.lang.Object
cn.taketoday.http.client.reactive.JdkClientHttpResponse
- 所有已实现的接口:
ClientHttpResponse,HttpMessage,ReactiveHttpInputMessage
ClientHttpResponse for the Java HttpClient.- 从以下版本开始:
- 4.0
- 作者:
- Julien Eyraud, Rossen Stoyanchev
-
字段概要
字段修饰符和类型字段说明private final cn.taketoday.core.io.buffer.DataBufferFactoryprivate final HttpHeadersprivate final HttpResponse<Flow.Publisher<List<ByteBuffer>>>private static final Pattern -
构造器概要
构造器构造器说明JdkClientHttpResponse(HttpResponse<Flow.Publisher<List<ByteBuffer>>> response, cn.taketoday.core.io.buffer.DataBufferFactory bufferFactory) -
方法概要
修饰符和类型方法说明private static HttpHeadersadaptHeaders(HttpResponse<Flow.Publisher<List<ByteBuffer>>> response) 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.intReturn the HTTP status code (potentially non-standard and not resolvable through theHttpStatusenum) as an integer.Return the HTTP status code as anHttpStatusenum value.private ResponseCookietoResponseCookie(HttpCookie cookie, String sameSite) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cn.taketoday.http.client.reactive.ClientHttpResponse
getId
-
字段详细资料
-
SAME_SITE_PATTERN
-
response
-
bufferFactory
private final cn.taketoday.core.io.buffer.DataBufferFactory bufferFactory -
headers
-
-
构造器详细资料
-
JdkClientHttpResponse
public JdkClientHttpResponse(HttpResponse<Flow.Publisher<List<ByteBuffer>>> response, cn.taketoday.core.io.buffer.DataBufferFactory bufferFactory)
-
-
方法详细资料
-
adaptHeaders
-
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
- 另请参阅:
-
getHeaders
从接口复制的说明:HttpMessageReturn the headers of this message.- 指定者:
getHeaders在接口中HttpMessage- 返回:
- a corresponding HttpHeaders object (never
null)
-
getCookies
从接口复制的说明:ClientHttpResponseReturn a read-only map of response cookies received from the server.- 指定者:
getCookies在接口中ClientHttpResponse
-
toResponseCookie
-
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
-