src/Http.php
public static function getMethod() {
    if(null === self::$method) {
      // Make the method upper case.
      self::$method = @strtoupper($_SERVER['REQUEST_METHOD']);

      // A quick-and-dirty test to drop invalid methods.
      if(!self::$method || !ctype_upper(self::$method)) {
        self::$method = '';
      }
    }
    return self::$method;
  }
public static function getMethod() {
    if(null === self::$method) {
      // Make the method upper case.
      self::$method = @strtoupper($_SERVER['REQUEST_METHOD']);

      // A quick-and-dirty test to drop invalid methods.
      if(!self::$method || !ctype_upper(self::$method)) {
        self::$method = '';
      }
    }
    return self::$method;
  }
public static function getMethod ( ) { if ( null === self :: $ method ) { // Make the method upper case. self :: $ method = @ strtoupper ( $ _SERVER [ 'REQUEST_METHOD' ] ) ; // A quick-and-dirty test to drop invalid methods. if ( ! self :: $ method || ! ctype_upper ( self :: $ method ) ) { self :: $ method = '' ; } } return self :: $ method ; }
Returns the method of this request. In the case of HTTP, this might be GET,
POST, HEAD, etc.

@return string
Returns the method of this request . In the case of HTTP this might be GET POST HEAD etc .