diff --git a/src/EduFramework/Core/Controller/Request.php b/src/EduFramework/Core/Controller/Request.php index 29c2b5a..8b76183 100644 --- a/src/EduFramework/Core/Controller/Request.php +++ b/src/EduFramework/Core/Controller/Request.php @@ -166,4 +166,13 @@ public function setRoute(string $route): Request $this->route = $route; return $this; } + + /** + * Permet de récupérer le body de la requête HTTP + * @return string + */ + public function getBody(): false|string + { + return file_get_contents('php://input'); + } }