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: create a Rust sample plugin for creating a new cookie on HTTP response. #135

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

pweiber
Copy link
Contributor

@pweiber pweiber commented Dec 5, 2024

Checks for an existing my_cookie in incoming HTTP requests:

If the cookie exists, it logs the current session ID.
If absent, it generates a new random session ID, sets it in the Set-Cookie header, and logs the creation of the new session.

This example contains only a Rust version.

@pweiber pweiber requested a review from a team as a code owner December 5, 2024 14:42
Copy link

snippet-bot bot commented Dec 5, 2024

Here is the summary of changes.

You are about to add 1 region tag.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

# Conflicts:
#	plugins/Cargo.Bazel.lock
#	plugins/bazel/cargo/Cargo.Bazel.lock
Signed-off-by: pweiber <[email protected]>
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.

1 participant