Difference between revisions for Users / Eo Ny / dev
| Merge of Version1 & Version2 | |
|---|---|
| 1 | == HTTP Class Technical Documentation == |
| 2 | |
| 3 | {{toc numerate=1}} |
| 4 | === Overview === |
| 5 | |
| 6 | The ##Http## class (##src/class/http.php##) is a core component of the WackoWiki system responsible for handling HTTP request/response processing, session management, caching, and security features. This class acts as a bridge between the web server and the wiki engine. |
| … | … |
| 112 | |
| 113 | ---- |
| 114 | |
| 115 | ===== |
| 116 | Saves the generated page content to cache file. |
| 117 | |
| 118 | **Features:** |
| … | … |
| 122 | - Only executes if caching flag is set and user is anonymous |
| 123 | |
| 124 | **Example:** |
| 125 | %% |
| 126 | // Called at end of page rendering |
| 127 | $http->store_cache(); |
| 128 | %% |
| … | … |
| 573 | |
| 574 | === Workflow Examples === |
| 575 | |
| 576 | ==== |
| 577 | |
| 578 | %% |
| 579 | // In main wiki entry point |
| 580 | $http = new Http($db); |
| 581 | $http->session(0); // Start session |