Adding content to request
"이희승 (Trustin Lee)"
trustin at gmail.com
Sat Jul 9 22:29:31 EDT 2011
Yes, correct. It would be great if someone in the community write a
wrapper library eventually though. Netty core itself is meant to be a
low level library.
HTH,
Trustin
Jonathan Arnold wrote:
> Just want to make sure this is the easiest / standard way to add some
> String content to an HTTP / RTSP request. Seems a little complicated.
>
> RtspRequest request = new RtspRequest(
> RtspVersions.RTSP_1_0,RtspMethods.SET_PARAMETER, uri );
> CharSequence content = "This is some random text content\r\n";
> ChannelBuffer cb = copiedBuffer(content,CharsetUtil.US_ASCII);
> request.setContent(cb);
> request.setHeader(RtspHeaders.Names.CONTENT_LENGTH,cb.readableBytes());
>
--
Trustin Lee, http://gleamynode.net/
More information about the netty-users
mailing list