Public Member Functions | |
| process_response ($request, $response) | |
Check if a response contains HTML errors. It writes a general log in the 'tmp_folder' with a view of the details of the errors in separate files. It relies on the availability of tidy on the system path.
It checks only the pages with following status code: 200, 201, 202, 203, 204, 205, 206, 404, 501. And the following content type: text/html, text/html, application/xhtml+xml.
| Pluf_Middleware_Tidy::process_response | ( | $ | request, | |
| $ | response | |||
| ) |
Process the response of a view.
If the status code and content type are allowed, perform the check.
| Pluf_HTTP_Request | The request | |
| Pluf_HTTP_Response | The response |