Forward http message as is
"Trustin Lee (이희승)"
trustin at gmail.com
Mon Dec 28 07:06:24 EST 2009
Hi Leandro,
Currently, it's not possible without modifying the existing decoder
implementation. Because this feature has been requested sometimes, I
will make sure to take into account for the next release.
Thanks,
Trustin
Leandro Cruz wrote:
> Hi All,
>
> I'm trying to create a generic proxy (http, msn, etc) using netty.
> I've checked out the proxy example, which is very nice.
>
> What I'd like to do is add the HttpRequestDecoder to the pipeline (so I
> have a HttpRequest on messageReceived()), but forward the original
> request (ChannelBuffer) to the original host/server.
>
> Today this is not possible because HttpMessageDecoder uses
> a ReplayingDecoderBuffer, which doesn't give me access to the "internal"
> buffer/bytes. Another problem is that HttpRequest.getContent() is not a
> replica of the original ChannelBuffer.
>
> Ant ideas?
>
> -
> Leandro Rodrigo Saad Cruz
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://lists.jboss.org/pipermail/netty-users/attachments/20091228/6257c545/attachment.bin
More information about the netty-users
mailing list