ClientHttpRequest implementation for the Apache HttpComponents HttpClient 5.x.
| Modifier and Type | Field and Description |
|---|---|
| private Flux | |
| private transient long | |
| private final HttpClientContext | |
| private final DataBufferFactory | |
| private final HttpRequest |
| Access | Constructor and Description |
|---|---|
| public | HttpComponentsClientHttpRequest(HttpMethod method, URI uri, HttpClientContext context, DataBufferFactory dataBufferFactory)
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | applyCookies()
Implements abstract org. getHeaders() to the underlying request.
|
| protected void | applyHeaders()
Implements abstract org. getHeaders() to the underlying request.
|
| public DataBufferFactory | bufferFactory()
Implements org. DataBufferFactory that can be used to create the body.
|
| public HttpMethod | getMethod()
Implements org. |
| public <T> T | getNativeRequest()
Implements org. |
| public URI | getURI()
Implements org. |
| protected HttpHeaders | initReadOnlyHeaders()
Overrides org. |
| public Mono | setComplete()
Implements org. getHeaders() to the underlying HTTP message (if not
applied already).
|
| public AsyncRequestProducer | |
| 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.
|
| byteBufferFlux | back to summary |
|---|---|
| private Flux<ByteBuffer> byteBufferFlux
| |
| contentLength | back to summary |
|---|---|
| private transient long contentLength | |
| context | back to summary |
|---|---|
| private final HttpClientContext context | |
| dataBufferFactory | back to summary |
|---|---|
| private final DataBufferFactory dataBufferFactory | |
| httpRequest | back to summary |
|---|---|
| private final HttpRequest httpRequest | |
| HttpComponentsClientHttpRequest | back to summary |
|---|---|
| public HttpComponentsClientHttpRequest(HttpMethod method, URI uri, HttpClientContext context, DataBufferFactory dataBufferFactory) | |
| 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. | |
| toRequestProducer | back to summary |
|---|---|
| public AsyncRequestProducer toRequestProducer() | |
| 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 | |