public function getTimeoutHeader()
    {
        $header = $this->server->httpRequest->getHeader('Timeout');

        if ($header) {
            if (0 === stripos($header, 'second-')) {
                $header = (int) (substr($header, 7));
            } elseif (0 === stripos($header, 'infinite')) {
                $header = LockInfo::TIMEOUT_INFINITE;
            } else {
                throw new DAV\Exception\BadRequest('Invalid HTTP timeout header');
            }
        } else {
            $header = 0;
        }

        return $header;
    }
public function getTimeoutHeader()
    {
        $header = $this->server->httpRequest->getHeader('Timeout');

        if ($header) {
            if (0 === stripos($header, 'second-')) {
                $header = (int) (substr($header, 7));
            } elseif (0 === stripos($header, 'infinite')) {
                $header = LockInfo::TIMEOUT_INFINITE;
            } else {
                throw new DAV\Exception\BadRequest('Invalid HTTP timeout header');
            }
        } else {
            $header = 0;
        }

        return $header;
    }
public function getTimeoutHeader ( ) { $ header = $ this -> server -> httpRequest -> getHeader ( 'Timeout' ) ; if ( $ header ) { if ( 0 === stripos ( $ header , 'second-' ) ) { $ header = ( int ) ( substr ( $ header , 7 ) ) ; } elseif ( 0 === stripos ( $ header , 'infinite' ) ) { $ header = LockInfo :: TIMEOUT_INFINITE ; } else { throw new DAV \ Exception \ BadRequest ( 'Invalid HTTP timeout header' ) ; } } else { $ header = 0 ; } return $ header ; }
Returns the contents of the HTTP Timeout header.

The method formats the header into an integer.

@return int
Returns the contents of the HTTP Timeout header .