You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafficserver.apache.org by Assaf Cohen <as...@gmail.com> on 2017/01/22 16:00:56 UTC

How to perform a side HTTP request as part of plugin

Hi,
Is there a builtin way to use event system and do a HTTP request and upon
completion return to the initiating plugin.?

thanks
Assaf

Re: How to perform a side HTTP request as part of plugin

Posted by Shu Kit Chan <ch...@gmail.com>.
You can check out background fetch plugin -
https://github.com/apache/trafficserver/tree/master/plugins/background_fetch
and see how to do similar thing with the TSHttpConnect API

You can also check out FetchSM and the corresponding TSFetch* APIs as
well - https://github.com/apache/trafficserver/blob/master/proxy/api/ts/experimental.h

Thanks.

Kit


On Sun, Jan 22, 2017 at 8:00 AM, Assaf Cohen <as...@gmail.com> wrote:
> Hi,
> Is there a builtin way to use event system and do a HTTP request and upon
> completion return to the initiating plugin.?
>
> thanks
> Assaf