Adding content to request
Jonathan Arnold
jdarnold at buddydog.org
Sat Jul 9 08:06:55 EDT 2011
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());
--
Jonathan Arnold Webstream: http://hieronymus.soup.io
Talent wins games, but team work and intelligence wins championships.
Michael Jordan
More information about the netty-users
mailing list