📄️ Request
The Request class in WordPress MVC (WPMVC) is a helper for retrieving and sanitizing request data from:
📄️ Response
The Response class provides a clean way to send output in WordPress MVC.
The Http layer in WordPress MVC provides secure, elegant wrappers around WordPress's native request and response handling. Through the `Request` and `Response` classes, the framework abstracts `$_GET`, `$_POST`, `$_REQUEST`, headers, cookies, files, and server variables, while automatically applying sanitization, nonce/CSRF validation, input filtering, and type casting. This layer lets you interact with incoming data and outgoing responses in a consistent, object-oriented way — reducing boilerplate, preventing common security pitfalls, and making your controllers cleaner and more testable — all while staying fully compatible with WordPress hooks and globals.
The Request class in WordPress MVC (WPMVC) is a helper for retrieving and sanitizing request data from:
The Response class provides a clean way to send output in WordPress MVC.