Skip to content

Add TSHttpTxnNextHopPortGet, add NEXT-HOP to header rewrite#9829

Merged
traeak merged 2 commits intoapache:masterfrom
traeak:s3auth_hooks
Jun 29, 2023
Merged

Add TSHttpTxnNextHopPortGet, add NEXT-HOP to header rewrite#9829
traeak merged 2 commits intoapache:masterfrom
traeak:s3auth_hooks

Conversation

@traeak
Copy link
Contributor

@traeak traeak commented Jun 12, 2023

This adds TSHttpTxnNextHopPortGet in addition to TSHttpTxnNextHopNameGet and adds to header_rewrite as %{NEXT-HOP:HOST} and %{NEXT-HOP:PORT} for SEND_REQUEST_HDR_HOOK.

@traeak traeak self-assigned this Jun 12, 2023
@traeak traeak added Plugins Lua header_rewrite header_rewrite plugin labels Jun 12, 2023
@traeak traeak added this to the 10.0.0 milestone Jun 12, 2023
Copy link
Contributor

@shukitchan shukitchan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you are still working on this.
But please update the plugin documentation on the new changes as well. Thanks.

@traeak traeak changed the title Add TSHttpTxnNextHopPortGet, add to header rewrite Add TSHttpTxnNextHopPortGet, add NEXT-HOP to header rewrite Jun 21, 2023
add header rewrite support for NEXT-HOP:HOST and NEXT-HOP:PORT
@traeak traeak marked this pull request as ready for review June 21, 2023 18:54
@traeak traeak added the TS API label Jun 21, 2023
@traeak
Copy link
Contributor Author

traeak commented Jun 22, 2023

I think you are still working on this. But please update the plugin documentation on the new changes as well. Thanks.

it was just wip. should be documented and everything.

@bryancall bryancall requested a review from shukitchan June 26, 2023 22:46
Copy link
Contributor

@shukitchan shukitchan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, I think we need to update documentation for header rewrite plugin as well.


#include <ts/ts.h>

.. function:: const char *TSHttpTxnNextHopPortGet(TSHttpTxn txnp)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The return type is int instead. A typo here?

@traeak traeak merged commit 0363ab6 into apache:master Jun 29, 2023
zwoop pushed a commit that referenced this pull request Jul 3, 2023
* add TSHttpTxnNextHopPortGet to api
add header rewrite support for NEXT-HOP:HOST and NEXT-HOP:PORT

* add to header rewrite documentation and other doc fixes

---------

Co-authored-by: Brian Olsen <bolsen149@comcast.com>
(cherry picked from commit 0363ab6)
@zwoop
Copy link
Contributor

zwoop commented Jul 3, 2023

Slightly unorthodox to include this in a patch release, but alas, we're not doing 9.3.0 release, and this seems generally useful and safe.

@zwoop zwoop modified the milestones: 10.0.0, 9.2.2 Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants