public function compress(): array
    {
        $hs = [];
        foreach ($this->headers as $k => $header) {
            $vs = $header->getValues();
            $v = trim(implode(',', $vs));
            $hs[] = trim("$k: $v");
        }
        return $hs;
    }
public function compress(): array
    {
        $hs = [];
        foreach ($this->headers as $k => $header) {
            $vs = $header->getValues();
            $v = trim(implode(',', $vs));
            $hs[] = trim("$k: $v");
        }
        return $hs;
    }
public function compress ( ) : array { $ hs = [ ] ; foreach ( $ this -> headers as $ k => $ header ) { $ vs = $ header -> getValues ( ) ; $ v = trim ( implode ( ',' , $ vs ) ) ; $ hs [ ] = trim ( "$k: $v" ) ; } return $ hs ; }
Compress all headers into an HTTP-friendly format

@return array
Compress all headers into an HTTP - friendly format