ClientHttpRequest implementation for the Reactor-Netty HTTP client.
Created via the ReactorNettyClientRequestFactory.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Duration | |
| private final HttpClient | |
| private final HttpMethod | |
| private final Duration | |
| private final URI |
| Access | Constructor and Description |
|---|---|
| public | ReactorNettyClientRequest(HttpClient httpClient, URI uri, HttpMethod method, Duration exchangeTimeout, Duration readTimeout)
|
| Modifier and Type | Method and Description |
|---|---|
| protected ClientHttpResponse | executeInternal(HttpHeaders
the HTTP headers headers, StreamingHttpOutputMessage.the HTTP body, may be bodynull if no body was setImplements abstract org. Abstract template method that writes the given headers and content to the HTTP request. |
| public HttpMethod | getMethod()
Implements org. Return the HTTP method of the request. |
| public URI | getURI()
Implements org. Return the URI of the request (including a query string if any, but only if it is well-formed for a URI representation). |
| private Publisher | send(HttpHeaders headers, StreamingHttpOutputMessage.
|
| exchangeTimeout | back to summary |
|---|---|
| private final Duration exchangeTimeout | |
| httpClient | back to summary |
|---|---|
| private final HttpClient httpClient | |
| method | back to summary |
|---|---|
| private final HttpMethod method | |
| readTimeout | back to summary |
|---|---|
| private final Duration readTimeout | |
| uri | back to summary |
|---|---|
| private final URI uri | |
| ReactorNettyClientRequest | back to summary |
|---|---|
| public ReactorNettyClientRequest(HttpClient httpClient, URI uri, HttpMethod method, Duration exchangeTimeout, Duration readTimeout) | |
| executeInternal | back to summary |
|---|---|
| protected ClientHttpResponse executeInternal(HttpHeaders headers, StreamingHttpOutputMessage. Implements abstract org. Doc from org. Abstract template method that writes the given headers and content to the HTTP request.
| |
| getMethod | back to summary |
|---|---|
| public HttpMethod getMethod() Implements org. Doc from org. Return the HTTP method of the request.
| |
| getURI | back to summary |
|---|---|
| public URI getURI() Implements org. Doc from org. Return the URI of the request (including a query string if any, but only if it is well-formed for a URI representation). | |
| send | back to summary |
|---|---|
| private Publisher | |
| Modifier and Type | Field and Description |
|---|---|
| private final ByteBufAllocator |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ByteBuf | map(int b)
Implements org. Maps a single byte to |
| public ByteBuf | map(byte[] b, int off, int len)
Implements org. Maps a byte array to |
| allocator | back to summary |
|---|---|
| private final ByteBufAllocator allocator | |
| ByteBufMapper | back to summary |
|---|---|
| public ByteBufMapper(ByteBufAllocator allocator) | |
| map | back to summary |
|---|---|
| public ByteBuf map(int b) Implements org. Doc from org. Maps a single byte to
| |
| map | back to summary |
|---|---|
| public ByteBuf map(byte[] b, int off, int len) Implements org. Doc from org. Maps a byte array to
| |