Skip to content

Commit 38838fc

Browse files
authoredMar 3, 2025··
feat: Add domain rewrite in body sample plugin (#170)
* feat: Add domain rewrite in body sample plugin * repin deps and fix format * Add license * Clarify code comments * Clear output after usage to avoid unnecessary memory buffering * Add graceful error handling and remove early stop condition * resolve comments * Remove unnecessary memory allocation and update code comments * resolve comments
1 parent 9504869 commit 38838fc

File tree

60 files changed

+3751
-8
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+3751
-8
lines changed
 

‎plugins/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ for your own plugin. Extend them to fit your particular use case.
138138
initial numbers will be masked.
139139
* [Validate client token on query string using HMAC](samples/hmac_authtoken):
140140
Check the client request URL for a valid token signed using HMAC.
141+
* [Rewrite domains in html response body](samples/html_domain_rewrite/): Parse
142+
html in response body chunks and replace insances of "foo.com" with
143+
"bar.com" in `<a href=***>`.
141144

142145
# Feature set / ABI
143146

‎plugins/bazel/cargo/BUILD

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ crates_vendor(
3232
repository_name = "cu", # shorten generated paths for Windows...
3333
tags = ["manual"],
3434
vendor_path = "remote",
35-
supported_platform_triples = ["wasm32-wasi"],
35+
supported_platform_triples = ["x86_64-unknown-linux-gnu", "wasm32-wasi"], # needed x86_64-unknown-linux-gnu to fix issue with getrandom building for wrong environment
3636
)

0 commit comments

Comments
 (0)
Please sign in to comment.