src/_legacyCode/HttpMessage.php
public function isConnectionClose()
    {
        $connection = $this->getHeader('connection');

        if ($this->protocolVersion === '1.1') {
            return ($connection[0] === 'C' || $connection[0] === 'c');
        } else {
            return ($connection[0] !== 'K' && $connection[0] !== 'k');
        }
    }
public function isConnectionClose()
    {
        $connection = $this->getHeader('connection');

        if ($this->protocolVersion === '1.1') {
            return ($connection[0] === 'C' || $connection[0] === 'c');
        } else {
            return ($connection[0] !== 'K' && $connection[0] !== 'k');
        }
    }
public function isConnectionClose ( ) { $ connection = $ this -> getHeader ( 'connection' ) ; if ( $ this -> protocolVersion === '1.1' ) { return ( $ connection [ 0 ] === 'C' || $ connection [ 0 ] === 'c' ) ; } else { return ( $ connection [ 0 ] !== 'K' && $ connection [ 0 ] !== 'k' ) ; } }
Provides information is TCP connection should be terminated after sending this request.

@return bool
Provides information is TCP connection should be terminated after sending this request .