Update to the latest Reactory Netty snapshot
This commit is contained in:
parent
99be15f58b
commit
b52b56c94e
|
@ -16,21 +16,21 @@
|
||||||
|
|
||||||
package org.springframework.http.server.reactive;
|
package org.springframework.http.server.reactive;
|
||||||
|
|
||||||
import io.netty.buffer.ByteBuf;
|
import java.util.function.Function;
|
||||||
|
|
||||||
import reactor.core.publisher.Mono;
|
import reactor.core.publisher.Mono;
|
||||||
import reactor.io.ipc.ChannelHandler;
|
|
||||||
import reactor.io.netty.http.HttpChannel;
|
import reactor.io.netty.http.HttpChannel;
|
||||||
|
|
||||||
import org.springframework.core.io.buffer.NettyDataBufferFactory;
|
import org.springframework.core.io.buffer.NettyDataBufferFactory;
|
||||||
import org.springframework.util.Assert;
|
import org.springframework.util.Assert;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adapt {@link HttpHandler} to the Reactor Netty {@link ChannelHandler}.
|
* Adapt {@link HttpHandler} to the Reactor Netty channel handling function.
|
||||||
*
|
*
|
||||||
* @author Stephane Maldini
|
* @author Stephane Maldini
|
||||||
* @since 5.0
|
* @since 5.0
|
||||||
*/
|
*/
|
||||||
public class ReactorHttpHandlerAdapter implements ChannelHandler<ByteBuf, ByteBuf, HttpChannel> {
|
public class ReactorHttpHandlerAdapter implements Function<HttpChannel, Mono<Void>> {
|
||||||
|
|
||||||
private final HttpHandler httpHandler;
|
private final HttpHandler httpHandler;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue