public function getResponseHandshake($key, array $headers = [])
    {
        $headers = array_merge(
            $this->getSuccessResponseHeaders(
                $key
            ),
            $headers
        );

        return $this->getHttpResponse(self::HTTP_SWITCHING_PROTOCOLS, $headers);
    }
public function getResponseHandshake($key, array $headers = [])
    {
        $headers = array_merge(
            $this->getSuccessResponseHeaders(
                $key
            ),
            $headers
        );

        return $this->getHttpResponse(self::HTTP_SWITCHING_PROTOCOLS, $headers);
    }
public function getResponseHandshake ( $ key , array $ headers = [ ] ) { $ headers = array_merge ( $ this -> getSuccessResponseHeaders ( $ key ) , $ headers ) ; return $ this -> getHttpResponse ( self :: HTTP_SWITCHING_PROTOCOLS , $ headers ) ; }
Gets a handshake response body

@param string $key
@param array  $headers
Gets a handshake response body