質問

I'm new to netty and trying the examples they have on their website. I'm doing the HttpFileServer for version 3.9 and and in the Handler class I saw this

    Channel ch = e.getChannel();

    // Write the initial line and the header.
    ch.write(response);

Where/how can I see what is being written to the a channel instance?

役に立ちましたか?

解決

You can add a LoggingHandler to the ChannelPipeline. This will log out all the data which is received and written.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top