]> git.mxchange.org Git - core.git/blobdiff - inc/classes/interfaces/request/class_Requestable.php
Added isGetRequestMethod(), isHeadRequestMethod() and isPostRequestMethod().
[core.git] / inc / classes / interfaces / request / class_Requestable.php
index 3693d94ad9473e0b8386134b31c19b5d6a42ccb6..5a9ef492d067c7cf0d9b5843f5c821af97f7add3 100644 (file)
@@ -77,6 +77,27 @@ interface Requestable extends FrameworkInterface {
         * @return      $cookieValue    Value of cookie or null if not found
         */
        function readCookie ($cookieName);
+
+       /**
+        * Checks if the request method is GET.
+        *
+        * @return      $isGet  Whether the request method is GET
+        */
+       function isGetRequestMethod ();
+
+       /**
+        * Checks if the request method is HEAD.
+        *
+        * @return      $isHead         Whether the request method is HEAD
+        */
+       function isHeadRequestMethod ();
+
+       /**
+        * Checks if the request method is POST.
+        *
+        * @return      $isPost         Whether the request method is POST
+        */
+       function isPostRequestMethod ();
 }
 
 // [EOF]