Skip to content

docs: improve serverless plugin example (#8980)#13051

Open
ashruthg wants to merge 1 commit intoapache:masterfrom
ashruthg:patch-1
Open

docs: improve serverless plugin example (#8980)#13051
ashruthg wants to merge 1 commit intoapache:masterfrom
ashruthg:patch-1

Conversation

@ashruthg
Copy link

Description

Update the serverless plugin documentation to include a more meaningful example demonstrating URI argument manipulation instead of a simple log example.

Which issue(s) this PR fixes:

Fixes #8980

Updated example to show usage of function with parameters.
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. doc Documentation things labels Feb 28, 2026
if not ngx.var.arg_name then
local uri_args = core.request.get_uri_args(ctx)
uri_args.name = "world"
ngx.req.set_uri_args(uri_args)
Copy link
Contributor

Choose a reason for hiding this comment

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

please use core.request.set_uri_args

@Baoyuantop Baoyuantop requested a review from kayx23 March 2, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Documentation things size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: update example in serverless Plugin documentation

2 participants