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()AFluxextension that allows for extra decoding operators.Flux<?>a Object inboundFlux.withConnection(Consumer<? super Connection> withConnection) Calls the passed callback with aConnectionto operate on the underlyingChannelstate.
-
Method Details
-
receive
ByteBufFlux receive()AFluxextension 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 aConnectionto operate on the underlyingChannelstate. This allows for chaining inbound API.- Parameters:
withConnection- connection callback- Returns:
- the
Connection
-