Software /
code /
prosody
Diff
net/http/server.lua @ 12886:686c3cdd4775
Merge 0.12->trunk
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 16 Feb 2023 16:00:07 +0000 |
parent | 12885:3a6dae39c70e |
child | 12974:ba409c67353b |
line wrap: on
line diff
--- 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;