我和Netty一起工作。我有一个HttpObject,我需要内容(HttpContent)。演员不管用。那我能做什么呢?
你好,丹尼尔
发布于 2014-11-05 03:56:56
HttpObject有几个子接口。其中包括HttpMessage和HttpContent。通常,HttpMessage表示标头,HttpContent表示数据。根据管道的配置方式,您可能会得到以下内容:
Netty提供了一些http示例来演示如何处理HttpObject。https://github.com/netty/netty/tree/master/example/src/main/java/io/netty/example/http/upload示例展示了如何处理上面描述的第二个选项。
https://stackoverflow.com/questions/26740714
复制相似问题