From 8662144511844e15b22a176c6d20018cb13af127 Mon Sep 17 00:00:00 2001 From: Ginger Cookie <39255539+afrouzMashaykhi@users.noreply.github.com> Date: Tue, 5 Jan 2021 21:14:35 +0330 Subject: [PATCH] Update rootfs/etc/nginx/lua/plugins/README.md Co-authored-by: Elvin Efendi --- rootfs/etc/nginx/lua/plugins/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootfs/etc/nginx/lua/plugins/README.md b/rootfs/etc/nginx/lua/plugins/README.md index 9a1252c4a..0967c8d94 100644 --- a/rootfs/etc/nginx/lua/plugins/README.md +++ b/rootfs/etc/nginx/lua/plugins/README.md @@ -15,7 +15,7 @@ By defining functions with the following names, you can run your custom Lua code - `init_worker`: useful for initializing some data per Nginx worker process - `rewrite`: useful for modifying request, changing headers, redirection, dropping request, doing authentication etc - `header_filter`: this is called when backend response header is received, it is useful for modifying response headers - - `body_filter`: this is called when response body is received, it is full for logging response body + - `body_filter`: this is called when response body is received, it is useful for logging response body - `log`: this is called when request processing is completed and a response is delivered to the client Check this [`hello_world`](https://github.com/kubernetes/ingress-nginx/tree/master/rootfs/etc/nginx/lua/plugins/hello_world) plugin as a simple example or refer to [OpenID Connect integration](https://github.com/ElvinEfendi/ingress-nginx-openidc/tree/master/rootfs/etc/nginx/lua/plugins/openidc) for more advanced usage.