You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafficserver.apache.org by Sandeep Davu <sa...@gmail.com> on 2015/02/27 01:43:04 UTC
Adding headers to C++ api AsyncHttpFetch Streaming request.
Hi,
How do you add headers to a request you want to send out using
AsyncHttpFetch. Should the url_str that we pass to AsyncHttpFetch contain
the headers too?
I have a server intercept and wanted to issue a AyncRequest but copy all
the headers from the incoming request. Whats the best way to achieve this?
The AynscHttpFetchStreaming example does similar to what I want but it
does not address the headers while sending the request out.
Sandeep.
Re: Adding headers to C++ api AsyncHttpFetch Streaming request.
Posted by Sandeep Davu <sa...@gmail.com>.
Thanks Brian.
Sandeep.
On Thu, Feb 26, 2015 at 6:45 PM, Brian Geffon <br...@apache.org> wrote:
> Take a look at line 91 in the following example:
>
> https://git1-us-west.apache.org/repos/asf?p=trafficserver.git;a=blob;f=lib/atscppapi/examples/async_http_fetch/AsyncHttpFetch.cc
>
> Brian
>
> On Thu, Feb 26, 2015 at 4:43 PM, Sandeep Davu <sa...@gmail.com>
> wrote:
>
> > Hi,
> >
> > How do you add headers to a request you want to send out using
> > AsyncHttpFetch. Should the url_str that we pass to AsyncHttpFetch contain
> > the headers too?
> >
> > I have a server intercept and wanted to issue a AyncRequest but copy all
> > the headers from the incoming request. Whats the best way to achieve
> this?
> > The AynscHttpFetchStreaming example does similar to what I want but it
> > does not address the headers while sending the request out.
> >
> > Sandeep.
> >
>
Re: Adding headers to C++ api AsyncHttpFetch Streaming request.
Posted by Brian Geffon <br...@apache.org>.
Take a look at line 91 in the following example:
https://git1-us-west.apache.org/repos/asf?p=trafficserver.git;a=blob;f=lib/atscppapi/examples/async_http_fetch/AsyncHttpFetch.cc
Brian
On Thu, Feb 26, 2015 at 4:43 PM, Sandeep Davu <sa...@gmail.com>
wrote:
> Hi,
>
> How do you add headers to a request you want to send out using
> AsyncHttpFetch. Should the url_str that we pass to AsyncHttpFetch contain
> the headers too?
>
> I have a server intercept and wanted to issue a AyncRequest but copy all
> the headers from the incoming request. Whats the best way to achieve this?
> The AynscHttpFetchStreaming example does similar to what I want but it
> does not address the headers while sending the request out.
>
> Sandeep.
>