类 DefaultClientRequestBuilder.BodyInserterRequest
java.lang.Object
cn.taketoday.web.reactive.function.client.DefaultClientRequestBuilder.BodyInserterRequest
- 所有已实现的接口:
ClientRequest
private static class DefaultClientRequestBuilder.BodyInserterRequest
extends Object
implements ClientRequest
-
嵌套类概要
从接口继承的嵌套类/接口 cn.taketoday.web.reactive.function.client.ClientRequest
ClientRequest.Builder -
字段概要
字段修饰符和类型字段说明private final BodyInserter<?,? super ClientHttpRequest> private final HttpHeadersprivate final Consumer<ClientHttpRequest>private final Stringprivate final HttpMethodprivate final URI从接口继承的字段 cn.taketoday.web.reactive.function.client.ClientRequest
LOG_ID_ATTRIBUTE -
构造器概要
构造器构造器说明BodyInserterRequest(HttpMethod method, URI url, HttpHeaders headers, cn.taketoday.util.MultiValueMap<String, String> cookies, BodyInserter<?, ? super ClientHttpRequest> body, Map<String, Object> attributes, Consumer<ClientHttpRequest> httpRequestConsumer) -
方法概要
修饰符和类型方法说明Return the attributes of this request.BodyInserter<?,? super ClientHttpRequest> body()Return the body inserter of this request.cookies()Return the cookies of this request.headers()Return the headers of this request.Return consumer(s) configured to access to theClientHttpRequest.Return a log message prefix to use to correlate messages for this request.method()Return the HTTP method.url()Return the request URI.reactor.core.publisher.Mono<Void>writeTo(ClientHttpRequest request, ExchangeStrategies strategies) Write this request to the givenClientHttpRequest.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cn.taketoday.web.reactive.function.client.ClientRequest
attribute
-
字段详细资料
-
method
-
url
-
headers
-
cookies
-
body
-
attributes
-
httpRequestConsumer
-
logPrefix
-
-
构造器详细资料
-
BodyInserterRequest
public BodyInserterRequest(HttpMethod method, URI url, HttpHeaders headers, cn.taketoday.util.MultiValueMap<String, String> cookies, BodyInserter<?, ? super ClientHttpRequest> body, Map<String, Object> attributes, @Nullable Consumer<ClientHttpRequest> httpRequestConsumer)
-
-
方法详细资料
-
method
从接口复制的说明:ClientRequestReturn the HTTP method.- 指定者:
method在接口中ClientRequest
-
url
从接口复制的说明:ClientRequestReturn the request URI.- 指定者:
url在接口中ClientRequest
-
headers
从接口复制的说明:ClientRequestReturn the headers of this request.- 指定者:
headers在接口中ClientRequest
-
cookies
从接口复制的说明:ClientRequestReturn the cookies of this request.- 指定者:
cookies在接口中ClientRequest
-
body
从接口复制的说明:ClientRequestReturn the body inserter of this request.- 指定者:
body在接口中ClientRequest
-
attributes
从接口复制的说明:ClientRequestReturn the attributes of this request.- 指定者:
attributes在接口中ClientRequest
-
httpRequest
从接口复制的说明:ClientRequestReturn consumer(s) configured to access to theClientHttpRequest.- 指定者:
httpRequest在接口中ClientRequest
-
logPrefix
从接口复制的说明:ClientRequestReturn a log message prefix to use to correlate messages for this request. The prefix is based on the value of the attributeLOG_ID_ATTRIBUTEsurrounded with "[" and "]".- 指定者:
logPrefix在接口中ClientRequest- 返回:
- the log message prefix or an empty String if the
LOG_ID_ATTRIBUTEis not set.
-
writeTo
public reactor.core.publisher.Mono<Void> writeTo(ClientHttpRequest request, ExchangeStrategies strategies) 从接口复制的说明:ClientRequestWrite this request to the givenClientHttpRequest.- 指定者:
writeTo在接口中ClientRequest- 参数:
request- the client http request to write tostrategies- the strategies to use when writing- 返回:
Mono<Void>to indicate when writing is complete
-