Package reactor.netty
Interface NettyInbound
- All Known Subinterfaces:
HttpServerRequest
,QuicInbound
,UdpInbound
,WebsocketInbound
- All Known Implementing Classes:
ChannelOperations
,HttpOperations
public interface NettyInbound
An inbound-traffic API delegating to an underlying
Channel
.- Since:
- 0.6
- Author:
- Stephane Maldini
-
Method Summary
Modifier and TypeMethodDescriptionreceive()
AFlux
extension that allows for extra decoding operators.Flux<?>
a Object inboundFlux
.withConnection
(Consumer<? super Connection> withConnection) Calls the passed callback with aConnection
to operate on the underlyingChannel
state.
-
Method Details
-
receive
ByteBufFlux receive()AFlux
extension that allows for extra decoding operators.- Returns:
- a new
ByteBufFlux
-
receiveObject
Flux<?> receiveObject()a Object inboundFlux
.- Returns:
- a Object inbound
Flux
-
withConnection
Calls the passed callback with aConnection
to operate on the underlyingChannel
state. This allows for chaining inbound API.- Parameters:
withConnection
- connection callback- Returns:
- the
Connection
-