[web_response->setHeaders] sets the headers delivered to the browser.
Accepts one parameter, an array of name/value pairs of headers.
web_response->setHeaders(array)
First create a variable containing an array of the desired headers, then include the variable in the method.
Code
local(header_array = array('HTTP request status' = 200, 'X-Powered-By' = 'Lasso 9'))
web_response->setHeaders(#header_array)
Result
array((Content-Type = text/html; charset="UTF-8"), (X-Powered-By = Lasso 9))
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments