webmcp

view framework/env/request/add_header.lua @ 254:2169a62e12f5

Work on demo application (to fit modified WebMCP API); Bugfixes of WebMCP
author jbe
date Mon Mar 02 01:15:34 2015 +0100 (2015-03-02)
parents 25a20bd1f416
children c3d539e33710
line source
1 function request.add_header(key, value)
2 if value == nil then
3 error("Function request.add_header(...) requires two arguments")
4 end
5 request._response_headers[#request._response_headers+1] = {key, value}
6 end

Impressum / About Us