web_response

Controls response headers, cookies, status, includes, and body behavior.

Target type

Signature

1web_response

Controls response headers, cookies, status, includes, and body behavior.

web_response constructs or identifies a LaiRu value type. web_response belongs at the request or response boundary. Treat visitor input as untrusted, validate before use, and encode values before writing them into HTML.

Examples

Basic call

1web_response->setStatus(200, 'OK')
The example belongs near a request or response boundary; validate visitor input before trusting it.