Inject Headers using proxy
koneru9999
koneru.chowdary at gmail.com
Fri Jun 17 00:56:31 EDT 2011
Abraham,
Thanks for your response. your post certainly gave me some additional
information which i am not aware.
But if you can see the link that i have mentioned in my post, all the
requests will be transformed to HttpRequest. by using this HttpRequest, i
can get direct access to the all the http headers..
in the InterceptStop class, i would like to check for the header from that
HttpRequest and if it is not present then i want to add the header with some
value.actually i can do that directly by adding
request.addHeader("name","value"); .... But the problem is that the
InterceptStop is not forwarding the request object to the upstream instead
it is forwarding the ChannelBuffer object which is copied at the first place
in InterceptStart class.
is there any way that i can directly convert HttpRequest into ChannelBuffer
?
--
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Inject-Headers-using-proxy-tp6472734p6485767.html
Sent from the Netty User Group mailing list archive at Nabble.com.
More information about the netty-users
mailing list