Skip to content

feat(wasm): support getting request body#6325

Merged
spacewander merged 2 commits into
apache:masterfrom
spacewander:wab
Feb 18, 2022
Merged

feat(wasm): support getting request body#6325
spacewander merged 2 commits into
apache:masterfrom
spacewander:wab

Conversation

@spacewander

Copy link
Copy Markdown
Member

Signed-off-by: spacewander [email protected]

What this PR does / why we need it:

Pre-submission checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

@spacewander
spacewander force-pushed the wab branch 2 times, most recently from 9b84730 to 0333f8f Compare February 15, 2022 09:05
@spacewander
spacewander marked this pull request as ready for review February 15, 2022 11:53
tzssangglass
tzssangglass previously approved these changes Feb 16, 2022
bzp2010
bzp2010 previously approved these changes Feb 16, 2022
Comment thread apisix/wasm.lua Outdated
Comment thread t/APISIX.pm

my $a6_ngx_vars = "";
if ($version =~ m/\/apisix-nginx-module/) {
$a6_ngx_vars = <<_EOC_;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
$a6_ngx_vars = <<_EOC_;
$a6_ngx_vars .= <<_EOC_;

Would this be better ? If there is a new setting that needs to be applied, we don't need to change it.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

There is no need to append the str to $a6_ngx_vars which is empty if apisix-nginx-module is missing.

Comment thread t/wasm/request-body.t
hello
--- grep_error_log eval
qr/request get body: \w+/
--- grep_error_log_out

@leslie-tsang leslie-tsang Feb 16, 2022

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

--- grep_error_log_out

Is it possible to remove this ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No. A empty grep_error_log_out means "should not grep any result with the pattern given in grep_error_log".

Comment thread t/APISIX.pm
@spacewander
spacewander dismissed stale reviews from bzp2010 and tzssangglass via 82d88b0 February 16, 2022 13:45
@bzp2010
bzp2010 self-requested a review February 17, 2022 01:33
@spacewander
spacewander merged commit e4658fc into apache:master Feb 18, 2022
@spacewander
spacewander deleted the wab branch February 18, 2022 02:42
hongbinhsu pushed a commit to fitphp/apix that referenced this pull request Feb 23, 2022
* upstream: (52 commits)
  feat: add kubernetes discovery module (apache#4880)
  docs: fix For L7 proxy -> For L4 proxy (apache#6423)
  fix(deps): upgrade jsonschema to 0.9.8 (apache#6407)
  docs: translate Chinese to English in en clickhouse-logger (apache#6416)
  docs: add zh proxy-control.md&modify other doc error (apache#6346)
  docs: update public API relative usage (apache#6318)
  docs(cn): remove datadog from sidebar & fix doc lint conf (apache#6411)
  fix(request-validation): should not limit the urlencoded post args number (apache#6396)
  docs: fix configuration file typo (apache#6395)
  docs(extern-plugin): the implementation of runner (apache#6336)
  docs: polishing skywalking-logger plugin's docs (apache#6377)
  doc: adjust the directory structure of observability's documents (apache#6391)
  change(admin): empty nodes should be encoded as array (apache#6384)
  fix: should not limit the header number (apache#6379)
  ci: remove unnecessary tmate action (apache#6367)
  fix(opentelemetry): batch_span_processor export zero length spans (apache#6349)
  feat(graphql): support http get and post json request (apache#6343)
  feat: support for configuring the number of etcd health check retries (apache#6322)
  feat(wasm): support getting request body (apache#6325)
  fix(hmac-auth): hmac-auth plugin sort array param (apache#6314)
  ...
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.

6 participants