src/Guzzle/Http/Message/Response.php
public function isMethodAllowed($method)
    {
        $allow = $this->getHeader('Allow');
        if ($allow) {
            foreach (explode(',', $allow) as $allowable) {
                if (!strcasecmp(trim($allowable), $method)) {
                    return true;
                }
            }
        }

        return false;
    }
public function isMethodAllowed($method)
    {
        $allow = $this->getHeader('Allow');
        if ($allow) {
            foreach (explode(',', $allow) as $allowable) {
                if (!strcasecmp(trim($allowable), $method)) {
                    return true;
                }
            }
        }

        return false;
    }
public function isMethodAllowed ( $ method ) { $ allow = $ this -> getHeader ( 'Allow' ) ; if ( $ allow ) { foreach ( explode ( ',' , $ allow ) as $ allowable ) { if ( ! strcasecmp ( trim ( $ allowable ) , $ method ) ) { return true ; } } } return false ; }
Check if an HTTP method is allowed by checking the Allow response header

@param string $method Method to check

@return bool
Check if an HTTP method is allowed by checking the Allow response header