mirror of
https://github.com/tursom/TursomServer.git
synced 2025-02-15 06:10:10 +08:00
fix bug
This commit is contained in:
parent
5b00f97963
commit
a6247394fb
@ -1,6 +1,7 @@
|
|||||||
package cn.tursom.web.netty
|
package cn.tursom.web.netty
|
||||||
|
|
||||||
import cn.tursom.web.HttpHandler
|
import cn.tursom.web.HttpHandler
|
||||||
|
import io.netty.channel.ChannelHandler
|
||||||
import io.netty.channel.ChannelHandlerContext
|
import io.netty.channel.ChannelHandlerContext
|
||||||
import io.netty.channel.SimpleChannelInboundHandler
|
import io.netty.channel.SimpleChannelInboundHandler
|
||||||
import io.netty.handler.codec.http.HttpContent
|
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.handler.codec.http.LastHttpContent
|
||||||
import io.netty.util.AttributeKey
|
import io.netty.util.AttributeKey
|
||||||
|
|
||||||
|
@ChannelHandler.Sharable
|
||||||
class NettyHttpObjectHandler(
|
class NettyHttpObjectHandler(
|
||||||
private val handler: HttpHandler<NettyHttpContent, NettyExceptionContent>
|
private val handler: HttpHandler<NettyHttpContent, NettyExceptionContent>
|
||||||
) : SimpleChannelInboundHandler<HttpObject>() {
|
) : SimpleChannelInboundHandler<HttpObject>() {
|
||||||
|
Loading…
Reference in New Issue
Block a user