Last active
May 5, 2021 16:40
-
-
Save peterj/9d239063ee1d874404ab43ed285e275a to your computer and use it in GitHub Desktop.
Wasm Lua snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: envoy.filters.http.lua | |
typed_config: | |
"@type": type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua | |
inline_code: | | |
function envoy_on_request(request_handle) | |
-- Do something on the request path. | |
request_handle:headers():add("My-New-Header", "someValue") | |
end | |
function envoy_on_response(response_handle) | |
-- Do something on the response path. | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment