Inject Headers using proxy

"이희승 (Trustin Lee)" trustin at gmail.com
Fri Jun 17 20:30:20 EDT 2011


It does work.  You can call 'offer()' multiple times with a HttpRequest 
and its subsequent HttpChunks, and then call 'poll()' after offering the 
last chunk.

HTH

koneru9999 wrote:
> Lee,
> this is exactly what i have been looking for...
>
> i just wonder whether it works with Chunked http request or not ?
>
> anyway thank you very much for the response...
>
> --venky
>
>
> On 17 June 2011 16:30, ljohnston [via Netty Forums and Mailing Lists]<
> ml-node+6486233-1247242797-336746 at n2.nabble.com>  wrote:
>
>> You could try EncoderEmbedder<http://docs.jboss.org/netty/3.2/api/org/jboss/netty/handler/codec/embedder/EncoderEmbedder.html>.
>> Something like
>>
>> EncoderEmbedder<ChannelBuffer>  encoderEmbedder = new
>> EncoderEmbedder<ChannelBuffer>(new HttpRequestEncoder());
>>
>> encoderEmbedder.offer(httpRequest);
>> ChannelBuffer buf = encoderEmbedder.poll();
>>
>> should get you going.
>>
>> Cheers
>> Lee
>>
>> ------------------------------
>>   If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Inject-Headers-using-proxy-tp6472734p6486233.html
>>   To unsubscribe from Inject Headers using proxy, click here<http://netty-forums-and-mailing-lists.685743.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=6472734&code=a29uZXJ1LmNob3dkYXJ5QGdtYWlsLmNvbXw2NDcyNzM0fDMzOTYyNDA0Mg==>.
>>
>>
>
>
> --
> View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Inject-Headers-using-proxy-tp6472734p6486394.html
> Sent from the Netty User Group mailing list archive at Nabble.com.
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users

-- 
Trustin Lee, http://gleamynode.net/



More information about the netty-users mailing list