Skip to content

Commit aed1fea

Browse files
committed
feat(*): update filter to add a greeting header
1 parent 60a84ae commit aed1fea

File tree

4 files changed

+20
-286
lines changed

4 files changed

+20
-286
lines changed

Cargo.lock

Lines changed: 0 additions & 265 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@ proxy-wasm = "0.2"
1313
log = "0.4"
1414
serde-json-wasm = "0.5.0"
1515
serde = { version = "*", features = ["derive"] }
16-
chrono = "0.4"

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,17 @@ Proxy-Wasm Rust Filter Template
33

44
This repository contains a [Proxy-Wasm](https://github.com/proxy-wasm/spec)
55
filter that can be used as a reference to quickly start implementing new
6-
filters. The filter implements the entrypoints and function calls supported by
7-
WasmX. Please refer to [WasmX docs](https://github.com/Kong/ngx_wasm_module/blob/main/docs/PROXY_WASM.md#supported-entrypoints)
8-
for the list of supported entrypoints.
6+
filters in Rust.
7+
8+
This is a "hello-world" type filter performing a minimal operation and showing
9+
the basics of filter configuration: it simply adds a new header `X-Greeting`
10+
to a proxied response. You can pass the filter a JSON configuration in the
11+
format `{ "my_greeting": "Howdy!" }` to change the value of the injected
12+
header.
13+
14+
Please refer to [WasmX
15+
docs](https://github.com/Kong/ngx_wasm_module/blob/main/docs/PROXY_WASM.md#supported-entrypoints)
16+
for the list of supported functions and entrypoints.
917

1018
Requirements
1119
============

0 commit comments

Comments
 (0)