diff --git a/requests/WebRequest.inc b/requests/WebRequest.inc index c3208fb8..cbb9da08 100644 --- a/requests/WebRequest.inc +++ b/requests/WebRequest.inc @@ -129,7 +129,7 @@ /** - * Get all GET-parameters + * Get all GET-parameters. * * @return array GET-Parameters */ @@ -161,6 +161,28 @@ } + /** + * Get all POST-parameters. + * + * @return array POST-parameters + */ + public function getPostParams() + { + return $this->postParams; + } + + + /** + * Get the method of the current request. + * + * @return string Current request method + */ + public function getRequestMethod() + { + return $_SERVER['REQUEST_METHOD']; + } + + /** * Add a URL-route. *