ClientHttpRequest implementation for the Reactor-Netty HTTP client.
reactor.netty.http.client.HttpClient
| Modifier and Type | Field and Description |
|---|---|
| private final NettyDataBufferFactory | |
| private final HttpMethod | |
| private final NettyOutbound | |
| private final HttpClientRequest | |
| private final URI |
| Access | Constructor and Description |
|---|---|
| public | ReactorClientHttpRequest(HttpMethod method, URI uri, HttpClientRequest request, NettyOutbound outbound)
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | applyCookies()
Implements abstract org. Add cookies from |
| protected void | applyHeaders()
Implements abstract org. Apply header changes from |
| public DataBufferFactory | bufferFactory()
Implements org. Return a |
| public HttpMethod | getMethod()
Implements org. Return the HTTP method of the request. |
| public <T> T | getNativeRequest()
Implements org. Return the request from the underlying HTTP library. |
| public URI | getURI()
Implements org. Return the URI of the request. |
| protected HttpHeaders | initReadOnlyHeaders()
Overrides org. Initialize the read-only headers after the request is committed. |
| public Mono | setComplete()
Implements 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 |
| private static Publisher | |
| public Mono | writeAndFlushWith(Publisher<? extends Publisher<? extends DataBuffer>>
the body content publisher body)Implements org. Use the given |
| public Mono | writeWith(Publisher<? extends DataBuffer>
the body content publisher body)Implements org. Use the given |
| public Mono | writeWith(Path
the file to transfer file, long the position within the file from which the transfer is to begin position, long the number of bytes to be transferred count)Implements org. Use the given |
| bufferFactory | back to summary |
|---|---|
| private final NettyDataBufferFactory bufferFactory | |
| httpMethod | back to summary |
|---|---|
| private final HttpMethod httpMethod | |
| outbound | back to summary |
|---|---|
| private final NettyOutbound outbound | |
| request | back to summary |
|---|---|
| private final HttpClientRequest request | |
| uri | back to summary |
|---|---|
| private final URI uri | |
| ReactorClientHttpRequest | back to summary |
|---|---|
| public ReactorClientHttpRequest(HttpMethod method, URI uri, HttpClientRequest request, NettyOutbound outbound) | |
| applyCookies | back to summary |
|---|---|
| protected void applyCookies() Implements abstract org. Doc from org. Add cookies from
| |
| applyHeaders | back to summary |
|---|---|
| protected void applyHeaders() Implements abstract org. Doc from org. Apply header changes from
| |
| bufferFactory | back to summary |
|---|---|
| public DataBufferFactory bufferFactory() Implements org. Doc from org. Return a
| |
| 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.
| |
| initReadOnlyHeaders | back to summary |
|---|---|
| protected HttpHeaders initReadOnlyHeaders() Overrides org. Doc from org. Initialize the read-only headers after the request is committed. By default, this method simply applies a read-only wrapper. Subclasses can do the same for headers from the native request.
| |
| 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. | |
| toByteBufs | back to summary |
|---|---|
| private static Publisher | |
| 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 | |
| writeWith | back to summary |
|---|---|
| public Mono Implements org. Doc from org. Use the given | |