This commit is contained in:
tursom 2020-05-23 07:45:13 +08:00
parent 5b00f97963
commit a6247394fb

View File

@ -1,6 +1,7 @@
package cn.tursom.web.netty
import cn.tursom.web.HttpHandler
import io.netty.channel.ChannelHandler
import io.netty.channel.ChannelHandlerContext
import io.netty.channel.SimpleChannelInboundHandler
import io.netty.handler.codec.http.HttpContent
@ -9,6 +10,7 @@ import io.netty.handler.codec.http.HttpRequest
import io.netty.handler.codec.http.LastHttpContent
import io.netty.util.AttributeKey
@ChannelHandler.Sharable
class NettyHttpObjectHandler(
private val handler: HttpHandler<NettyHttpContent, NettyExceptionContent>
) : SimpleChannelInboundHandler<HttpObject>() {