ClientHttpRequest and delegates all methods to it.
Subclasses can override specific methods selectively.
| Modifier and Type | Field and Description |
|---|---|
| private final ClientHttpRequest |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | beforeCommit(Supplier<? extends Mono<Void>>
the action to apply action)Implements org. |
| public DataBufferFactory | bufferFactory()
Implements org. DataBufferFactory that can be used to create the body.
|
| public MultiValueMap | getCookies()
Implements org. |
| public ClientHttpRequest | |
| public HttpHeaders | getHeaders()
Implements org. |
| public HttpMethod | getMethod()
Implements org. |
| public <T> T | getNativeRequest()
Implements org. |
| public URI | getURI()
Implements org. |
| public boolean | isCommitted()
Implements org. |
| public Mono | setComplete()
Implements org. getHeaders() to the underlying HTTP message (if not
applied already).
|
| public String | |
| public Mono | writeAndFlushWith(Publisher<? extends Publisher<? extends DataBuffer>>
the body content publisher body)Implements org. Publisher of Publishers to write the body
of the HttpOutputMessage to the underlying HTTP layer, flushing after
each Publisher<DataBuffer>.
|
| public Mono | writeWith(Publisher<? extends DataBuffer>
the body content publisher body)Implements org. Publisher to write the body of the message to the
underlying HTTP layer.
|
| delegate | back to summary |
|---|---|
| private final ClientHttpRequest delegate | |
| ClientHttpRequestDecorator | back to summary |
|---|---|
| public ClientHttpRequestDecorator(ClientHttpRequest delegate) | |
| beforeCommit | back to summary |
|---|---|
| public void beforeCommit(Supplier<? extends Mono<Void>> action) Implements org. Doc from org. Register an action to apply just before the HttpOutputMessage is committed. Note the supplied action must be properly deferred,
e.g. via | |
| bufferFactory | back to summary |
|---|---|
| public DataBufferFactory bufferFactory() Implements org. Doc from org. Return a
| |
| getCookies | back to summary |
|---|---|
| public MultiValueMap Implements org. Doc from org. Return a mutable map of request cookies to send to the server.
| |
| getDelegate | back to summary |
|---|---|
| public ClientHttpRequest getDelegate() | |
| getHeaders | back to summary |
|---|---|
| public HttpHeaders getHeaders() Implements org. Doc from org. Return the headers of this message.
| |
| getMethod | back to summary |
|---|---|
| public HttpMethod getMethod() Implements org. Doc from org. Return the HTTP method of the request.
| |
| getNativeRequest | back to summary |
|---|---|
| public <T> T getNativeRequest() Implements org. Doc from org. Return the request from the underlying HTTP library.
| |
| getURI | back to summary |
|---|---|
| public URI getURI() Implements org. Doc from org. Return the URI of the request.
| |
| isCommitted | back to summary |
|---|---|
| public boolean isCommitted() Implements org. Doc from org. Whether the HttpOutputMessage is committed.
| |
| setComplete | back to summary |
|---|---|
| public Mono Implements org. Doc from org. Indicate that message handling is complete, allowing for any cleanup or
end-of-processing tasks to be performed such as applying header changes
made via This method should be automatically invoked at the end of message processing so typically applications should not have to invoke it. If invoked multiple times it should have no side effects. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| writeAndFlushWith | back to summary |
|---|---|
| public Mono Implements org. Doc from org. Use the given | |
| writeWith | back to summary |
|---|---|
| public Mono Implements org. Doc from org. Use the given | |