HttpOperations.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv class | |
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final BiPredicate | |
| pack-priv BiPredicate | |
| pack-priv final BiPredicate | |
| pack-priv final ConnectionInfo | |
| pack-priv static final FullHttpResponse | |
| pack-priv final ServerCookieDecoder | |
| pack-priv final ServerCookieEncoder | |
| pack-priv final ServerCookies | |
| pack-priv volatile Context | |
| pack-priv static final AsciiString | |
| pack-priv final HttpServerFormDecoderProvider | |
| pack-priv final boolean | |
| pack-priv final boolean | |
| pack-priv static final Logger | |
| pack-priv final BiFunction | |
| pack-priv final HttpRequest | |
| pack-priv final HttpResponse | |
| pack-priv Function | |
| pack-priv String | |
| pack-priv final Duration | |
| pack-priv final Duration | |
| pack-priv Future | |
| pack-priv final HttpHeaders | |
| pack-priv final String | |
| pack-priv final ZonedDateTime | |
| pack-priv Consumer |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | HttpServerOperations(Connection c, ConnectionObserver listener, HttpRequest nettyRequest, BiPredicate<HttpServerRequest, HttpServerResponse> compressionPredicate, ConnectionInfo connectionInfo, ServerCookieDecoder decoder, ServerCookieEncoder encoder, HttpServerFormDecoderProvider formDecoderProvider, HttpMessageLogFactory httpMessageLogFactory, boolean isHttp2, BiFunction<? super Mono<Void>, ? super Connection, ? extends Mono<Void>> mapHandle, Duration readTimeout, Duration requestTimeout, boolean secured, ZonedDateTime timestamp)
|
| pack-priv | HttpServerOperations(Connection c, ConnectionObserver listener, HttpRequest nettyRequest, BiPredicate<HttpServerRequest, HttpServerResponse> compressionPredicate, ConnectionInfo connectionInfo, ServerCookieDecoder decoder, ServerCookieEncoder encoder, HttpServerFormDecoderProvider formDecoderProvider, HttpMessageLogFactory httpMessageLogFactory, boolean isHttp2, BiFunction<? super Mono<Void>, ? super Connection, ? extends Mono<Void>> mapHandle, Duration readTimeout, Duration requestTimeout, boolean resolvePath, boolean secured, ZonedDateTime timestamp)
|
| Modifier and Type | Method and Description |
|---|---|
| public HttpServerResponse | addCookie(Cookie cookie)
Implements reactor. |
| public HttpServerResponse | addHeader(CharSequence
header name name, CharSequence header value value)Implements reactor. |
| protected void | |
| public Map | allCookies()
Implements reactor. |
| protected void | |
| public HttpServerOperations | chunkedTransfer(boolean
true if Transfer-Encoding: chunked chunked)Implements reactor. |
| pack-priv static void | |
| public HttpServerResponse | compression(boolean
should handle compression compress)Implements reactor. |
| public SocketAddress | connectionHostAddress()
Implements reactor. null in case of Unix Domain Sockets.
|
| public SocketAddress | connectionRemoteAddress()
Implements reactor. null in case of Unix Domain Sockets.
|
| public String | connectionScheme()
Implements reactor. |
| public Map | |
| public Context | currentContext()
Overrides reactor. Overrides default reactor. Context from dependent components which can include downstream
operators during subscribing or a terminal org..
|
| public String | fullPath()
Implements reactor. uri().
|
| public HttpServerResponse | header(CharSequence
headers key name, CharSequence header value value)Implements reactor. |
| public HttpServerResponse | headers(HttpHeaders
netty headers map headers)Implements reactor. |
| public InetSocketAddress | hostAddress()
Implements reactor. null in case of Unix Domain Sockets.
|
| public String | hostName()
Implements reactor. Host/X-Forwarded-Host/Forwarded header
associated with this request.
|
| public int | hostPort()
Implements reactor. Host/X-Forwarded-*/Forwarded header
associated with this request.
|
| pack-priv final SocketAddress | |
| protected boolean | |
| public boolean | isFormUrlencoded()
Implements reactor. Content-Type with value application/x-www-form-urlencoded.
|
| pack-priv final boolean | |
| public boolean | |
| public boolean | isMultipart()
Implements reactor. Content-Type with value multipart/form-data.
|
| public boolean | isWebsocket()
Overrides reactor. Implements reactor. |
| public HttpServerResponse | keepAlive(boolean keepAlive)
Implements reactor. keepAlive if true otherwise remove the existing connection keep alive header.
|
| public HttpMethod | method()
Implements reactor. |
| protected HttpMessage | newFullBodyMessage(ByteBuf body)
Implements abstract reactor. |
| protected void | |
| protected void | onInboundClose()
Overrides reactor. |
| protected void | onInboundNext(ChannelHandlerContext
the context ctx, Object the read payload msg)Overrides reactor. Channel#read.
|
| protected void | onOutboundComplete()
Overrides reactor. |
| protected void | onOutboundError(Throwable
the err)Throwable causeOverrides reactor. discard(), the inbound will
be canceled on channel inactive event if there is no subscriber available.
|
| protected HttpMessage | outboundHttpMessage()
Implements abstract reactor. |
| public String | param(CharSequence
parameter name e.g. key)"param" in URI /test/{param}Implements reactor. {} e.g. /test/{param}.
|
| public Map | params()
Implements reactor. {} e.g. /test/{param1}/{param2} as key/value map.
|
| public HttpServerRequest | paramsResolver(Function<? super String, Map<String, String>>
a params resolver paramsResolver)Implements reactor. |
| public String | protocol()
Implements reactor. |
| public Flux | receiveForm()
Implements reactor. POST and have Content-Type with value
application/x-www-form-urlencoded or multipart/form-data,
returns a Flux of HttpData containing received Attribute/FileUpload.
|
| public Flux | receiveForm(Consumer<HttpServerFormDecoderProvider.
HttpServerFormDecoderProvider. for HTTP form decoder configurationImplements reactor. POST and have Content-Type with value
application/x-www-form-urlencoded or multipart/form-data,
returns a Flux of HttpData containing received Attribute/FileUpload.
|
| pack-priv final Flux | |
| public Flux | receiveObject()
Overrides reactor. Implements reactor. Flux.
|
| public InetSocketAddress | remoteAddress()
Implements reactor. null in case of Unix Domain Sockets.
|
| pack-priv final SocketAddress | |
| public HttpHeaders | requestHeaders()
Implements reactor. HttpHeaders.
|
| pack-priv static long | |
| public HttpHeaders | responseHeaders()
Implements reactor. |
| public String | scheme()
Implements reactor. |
| public Mono | send()
Implements reactor. |
| pack-priv static void | sendDecodingFailures(ChannelHandlerContext ctx, ConnectionObserver listener, boolean secure, Throwable t, Object msg, HttpMessageLogFactory httpMessageLogFactory, ZonedDateTime timestamp, ConnectionInfo connectionInfo, SocketAddress remoteAddress)
|
| pack-priv static void | sendDecodingFailures(ChannelHandlerContext ctx, ConnectionObserver listener, boolean secure, Throwable t, Object msg, HttpMessageLogFactory httpMessageLogFactory, boolean isHttp2, ZonedDateTime timestamp, ConnectionInfo connectionInfo, SocketAddress remoteAddress)
|
| public NettyOutbound | sendFile(Path
the file Path file)Overrides default reactor. Path using
java.
support.
|
| public NettyOutbound | sendHeaders()
Implements reactor. NettyOutbound successful on committed response.
|
| public Mono | sendNotFound()
Implements reactor. HttpResponseStatus#NOT_FOUND.
|
| public Mono | sendRedirect(String
the location to redirect to location)Implements reactor. HttpResponseStatus#FOUND along with a location
header to the remote client.
|
| public Mono | sendWebsocket(BiFunction<? super WebsocketInbound, ? super WebsocketOutbound, ? extends Publisher<Void>>
the I/O handler for websocket transport websocketHandler, WebsocketServerSpec WebsocketServerSpec for websocket configurationImplements reactor. |
| public HttpServerResponse | Returns: theContent-Type setting SSE for this http connection (e.g. event-stream)Implements reactor. Content-Type setting SSE for this http connection (e.g. event-stream).
|
| public HttpResponseStatus | status()
Implements reactor. |
| public HttpServerResponse | status(HttpResponseStatus
an HTTP status to be sent along with the headers status)Implements reactor. |
| public ZonedDateTime | timestamp()
Implements reactor. |
| public HttpServerResponse | trailerHeaders(Consumer<? super HttpHeaders>
netty headers map trailerHeaders)Implements reactor. |
| public String | |
| public HttpVersion | version()
Implements reactor. |
| public HttpServerOperations | withConnection(Consumer<? super Connection>
connection callback withConnection)Overrides reactor. Implements reactor. Connection to operate on the
underlying Channel state.
|
| pack-priv final Mono | withWebsocketSupport(String url, WebsocketServerSpec websocketServerSpec, BiFunction<? super WebsocketInbound, ? super WebsocketOutbound, ? extends Publisher<Void>> websocketHandler)
|