Lasso Soft Inc. > Home

[ web_response->addHeader ]

Method

[web_response->addHeader] adds a name+value pair to the header array being returned to the client browser in the current web response.

  • Syntax
web_response->addHeader(name = value)
Examples
  • Beginner

To add a header specifying an alternate location for the returned data:

Use the [web_response->addHeader] method to add a 'Content-Location' header.

Code

web_response->addHeader('Content-Location' = '/index.lasso')
// return the web_response->headers for demonstration purposes
web_response->headers

Result

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

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