Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: transformer plugin support map from body to header #892

Merged
merged 3 commits into from
Mar 29, 2024

Conversation

johnlanni
Copy link
Collaborator

@johnlanni johnlanni commented Mar 28, 2024

Ⅰ. Describe what this PR did

Previously, this plugin was unable to support parsing parameters from the body and mapping them to headers, queries, etc. Now it is supported, and different rules can use different mapping sources.

For the support of #582, it will be submitted in another PR.

Ⅱ. Does this pull request fix one issue?

fixes #587 (The unfinished part)

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@johnlanni johnlanni requested a review from WeixinX as a code owner March 28, 2024 12:20
@johnlanni
Copy link
Collaborator Author

cc @Uncle-Justice @WeixinX

@johnlanni johnlanni changed the title transformer plugin support map from body to header Feat: transformer plugin support map from body to header Mar 28, 2024
@codecov-commenter
Copy link

codecov-commenter commented Mar 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 38.15%. Comparing base (ba0df23) to head (71cd0dc).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #892      +/-   ##
==========================================
+ Coverage   38.02%   38.15%   +0.12%     
==========================================
  Files          61       61              
  Lines       10440    10440              
==========================================
+ Hits         3970     3983      +13     
+ Misses       6169     6158      -11     
+ Partials      301      299       -2     

see 2 files with indirect coverage changes

@johnlanni johnlanni merged commit e844dae into alibaba:main Mar 29, 2024
11 checks passed
@Uncle-Justice
Copy link
Contributor

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wasm plugin optimization plan for request/response Transformer
3 participants