lib/Request.php
public function getHeaders(bool $originalCase = false): array {
        if (!$originalCase) {
            return $this->headers;
        }

        $headers = [];

        foreach ($this->headers as $header => $values) {
            $headers[$this->headerCaseMap[$header]] = $values;
        }

        return $headers;
    }
public function getHeaders(bool $originalCase = false): array {
        if (!$originalCase) {
            return $this->headers;
        }

        $headers = [];

        foreach ($this->headers as $header => $values) {
            $headers[$this->headerCaseMap[$header]] = $values;
        }

        return $headers;
    }
public function getHeaders ( bool $ originalCase = false ) : array { if ( ! $ originalCase ) { return $ this -> headers ; } $ headers = [ ] ; foreach ( $ this -> headers as $ header => $ values ) { $ headers [ $ this -> headerCaseMap [ $ header ] ] = $ values ; } return $ headers ; }
Retrieve an associative array of headers matching field names to an array of field values.

@param bool $originalCase If true, headers are returned in the case of the last set header with that name.

@return array
Retrieve an associative array of headers matching field names to an array of field values .