From df40e4df5e3485d1d70548b420e02b81aa61e60b Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 26 Aug 2008 17:50:32 +0000 Subject: libs/json: Completed JSON library modules/rpc: Added experimental JSON-RPC API --- libs/web/luasrc/http.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libs/web/luasrc') diff --git a/libs/web/luasrc/http.lua b/libs/web/luasrc/http.lua index 17b27482e..b1ffac2be 100644 --- a/libs/web/luasrc/http.lua +++ b/libs/web/luasrc/http.lua @@ -197,6 +197,12 @@ function prepare_content(mime) header("Content-Type", mime) end +--- Get the RAW HTTP input source +-- @return HTTP LTN12 source +function source() + return context.request.input +end + --- Set the HTTP status code and status message. -- @param code Status code -- @param message Status message -- cgit v1.2.3