Updates wasm basic middleware and simplifies some code inside of it, notably by using [waPC](https://github.com/wapc/wapc-go). This changes the entrypoint function to be named "rewrite" and uses a pool because known memory allocators are not goroutine safe. Signed-off-by: Adrian Cole <adrian@tetrate.io> Signed-off-by: Adrian Cole <adrian@tetrate.io> Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com> Co-authored-by: Artur Souza <artursouza.ms@outlook.com> |
||
---|---|---|
.. | ||
http | ||
README.md | ||
metadata.go | ||
middleware.go |
README.md
Middlewares
Middleware components provide a way to define middlewares that are executed in a pipeline and modify requests and responses.
Learn more about middlewares in Dapr
Implementing a new Middleware
A compliant middleware needs to implement the Middleware
interface included in the middleware.go
file.