author | Matthew Wild <mwild1@gmail.com> |
Thu, 16 Feb 2023 16:00:07 +0000 | |
changeset 12890 | 686c3cdd4775 |
parent 12888 | f5a75aaa8a25 (current diff) |
parent 12889 | 3a6dae39c70e (diff) |
child 12892 | b8504b71735d |
--- a/net/http/server.lua Fri Feb 10 00:37:05 2023 +0100 +++ b/net/http/server.lua Thu Feb 16 16:00:07 2023 +0000 @@ -428,6 +428,10 @@ function _M.set_option(name, value) options[name] = value; end +function _M.get_request_from_conn(conn) + local response = conn and conn._http_open_response; + return response and response.request or nil; +end _M.listener = listener; _M.codes = codes;