1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| package cn.org.hentai.jtt1078.http;
|
| import io.netty.buffer.ByteBuf;
| import io.netty.channel.ChannelHandlerContext;
| import io.netty.handler.codec.MessageToByteEncoder;
|
| /**
| * Created by matrixy on 2019/11/25.
| */
| public class GeneralResponseWriter extends MessageToByteEncoder<byte[]>
| {
| @Override
| protected void encode(ChannelHandlerContext ctx, byte[] msg, ByteBuf out) throws Exception
| {
| out.writeBytes(msg);
| }
| }
|
|