mirror of
https://github.com/tursom/TursomServer.git
synced 2025-02-08 10:40:48 +08:00
fix bug
This commit is contained in:
parent
5b00f97963
commit
a6247394fb
@ -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>() {
|
||||
|
Loading…
Reference in New Issue
Block a user