You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafficserver.apache.org by David Calavera <da...@gmail.com> on 2020/02/27 19:34:48 UTC

[API Proposal] Extend CPPAPI RemapPlugin to access TSRemapRequestInfo

Hi all,

This is a proposal to add a new virtual method to the CPP API to get access
to TSRemapRequestInfo.

We're working on a plugin that changes the origin URL on demand, and the
CPP API is a little bit confusing around which URL you need to modify to
accomplish this, specially if you want to leave the client URL as it is.

The change should be minimal and should not require any existent plugin
modifications.

I'm attaching a patch that I wrote this morning to accomplish that. If
people are +1 on this change, I can submit a pull request.

Cheers,
David

Re: [API Proposal] Extend CPPAPI RemapPlugin to access TSRemapRequestInfo

Posted by David Calavera <da...@gmail.com>.
Hi all,

I opened a PR with the patch in this thread in
https://github.com/apache/trafficserver/pull/6463

I expanded a little bit more in my motivation for this change here:
https://github.com/apache/trafficserver/pull/6463#issuecomment-592659119

Cheers,
David

On Thu, Feb 27, 2020 at 11:34 AM David Calavera <da...@gmail.com>
wrote:

> Hi all,
>
> This is a proposal to add a new virtual method to the CPP API to get
> access to TSRemapRequestInfo.
>
> We're working on a plugin that changes the origin URL on demand, and the
> CPP API is a little bit confusing around which URL you need to modify to
> accomplish this, specially if you want to leave the client URL as it is.
>
> The change should be minimal and should not require any existent plugin
> modifications.
>
> I'm attaching a patch that I wrote this morning to accomplish that. If
> people are +1 on this change, I can submit a pull request.
>
> Cheers,
> David
>
>
>