Class AbstractClientHttpRequest
java.lang.Object
org.springframework.http.client.reactive.AbstractClientHttpRequest
- All Implemented Interfaces:
ClientHttpRequest, HttpMessage, ReactiveHttpOutputMessage
- Direct Known Subclasses:
MockClientHttpRequest
Base class for
ClientHttpRequest implementations.- Since:
- 5.0
- Author:
- Rossen Stoyanchev, Brian Clozel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAdd attributes fromgetAttributes()to the underlying request.protected abstract voidAdd cookies fromgetHeaders()to the underlying request.protected abstract voidApply header changes fromgetHeaders()to the underlying request.voidbeforeCommit(Supplier<? extends reactor.core.publisher.Mono<Void>> action) Register an action to apply just before the HttpOutputMessage is committed.protected reactor.core.publisher.Mono<Void> doCommit()A variant ofdoCommit(Supplier)for a request without body.protected reactor.core.publisher.Mono<Void> ApplybeforeCommitactions, apply the request headers/cookies, and write the request body.Map<