public function verifyAll(RequestInterface $request) {
        $passes = 0;

        $passes += (int)$this->verifyMethod($request->getMethod());
        $passes += (int)$this->verifyHTTPVersion($request->getProtocolVersion());
        $passes += (int)$this->verifyRequestURI($request->getUri()->getPath());
        $passes += (int)$this->verifyHost($request->getHeader('Host'));
        $passes += (int)$this->verifyUpgradeRequest($request->getHeader('Upgrade'));
        $passes += (int)$this->verifyConnection($request->getHeader('Connection'));
        $passes += (int)$this->verifyKey($request->getHeader('Sec-WebSocket-Key'));
        $passes += (int)$this->verifyVersion($request->getHeader('Sec-WebSocket-Version'));

        return (8 === $passes);
    }
public function verifyAll(RequestInterface $request) {
        $passes = 0;

        $passes += (int)$this->verifyMethod($request->getMethod());
        $passes += (int)$this->verifyHTTPVersion($request->getProtocolVersion());
        $passes += (int)$this->verifyRequestURI($request->getUri()->getPath());
        $passes += (int)$this->verifyHost($request->getHeader('Host'));
        $passes += (int)$this->verifyUpgradeRequest($request->getHeader('Upgrade'));
        $passes += (int)$this->verifyConnection($request->getHeader('Connection'));
        $passes += (int)$this->verifyKey($request->getHeader('Sec-WebSocket-Key'));
        $passes += (int)$this->verifyVersion($request->getHeader('Sec-WebSocket-Version'));

        return (8 === $passes);
    }
public function verifyAll ( RequestInterface $ request ) { $ passes = 0 ; $ passes += ( int ) $ this -> verifyMethod ( $ request -> getMethod ( ) ) ; $ passes += ( int ) $ this -> verifyHTTPVersion ( $ request -> getProtocolVersion ( ) ) ; $ passes += ( int ) $ this -> verifyRequestURI ( $ request -> getUri ( ) -> getPath ( ) ) ; $ passes += ( int ) $ this -> verifyHost ( $ request -> getHeader ( 'Host' ) ) ; $ passes += ( int ) $ this -> verifyUpgradeRequest ( $ request -> getHeader ( 'Upgrade' ) ) ; $ passes += ( int ) $ this -> verifyConnection ( $ request -> getHeader ( 'Connection' ) ) ; $ passes += ( int ) $ this -> verifyKey ( $ request -> getHeader ( 'Sec-WebSocket-Key' ) ) ; $ passes += ( int ) $ this -> verifyVersion ( $ request -> getHeader ( 'Sec-WebSocket-Version' ) ) ; return ( 8 === $ passes ) ; }
Given an array of the headers this method will run through all verification methods
@param RequestInterface $request
@return bool TRUE if all headers are valid, FALSE if 1 or more were invalid
Given an array of the headers this method will run through all verification methods