From 961477048359bf15d5fb8b5807918e8c4307c584 Mon Sep 17 00:00:00 2001 From: Juliana Fajardini Date: Thu, 5 Jun 2025 10:55:05 -0300 Subject: [PATCH] doc/lua: document request_host lua lib Seems that we missed bringing this one, when documenting HTTP lua lib functions. --- doc/userguide/lua/libs/http.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/userguide/lua/libs/http.rst b/doc/userguide/lua/libs/http.rst index 23243d26d5..e73822bcdf 100644 --- a/doc/userguide/lua/libs/http.rst +++ b/doc/userguide/lua/libs/http.rst @@ -194,4 +194,14 @@ Example:: http_response_body = tx:response_body() print(http_response_body) +``request_host()`` +^^^^^^^^^^^^^^^^^^ + +Get the HTTP request host. + +Example:: + + local tx = http.get_tx() + http_host = tx:request_host() + print(http_host) -- 2.47.3