Lasso Soft Inc. > Home

[ web_response->setHeaders ]


[web_response->setHeaders] sets the headers delivered to the browser.

Accepts one parameter, an array of name/value pairs of headers.

  • Syntax
  • Beginner

To set all headers delivered to the browser, use [web_response->setHeaders]

First create a variable containing an array of the desired headers, then include the variable in the method.


local(header_array = array('HTTP request status' = 200, 'X-Powered-By' = 'Lasso 9'))



array((Content-Type = text/html; charset="UTF-8"), (X-Powered-By = Lasso 9))

Recent Comments

No Comments found

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. > Home



©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft