src/Leevel/Http/ServerBag.php
public function getHeaders(): array
    {
        $result = [];

        $contentHeaders = [
            'CONTENT_LENGTH',
            'CONTENT_MD5',
            'CONTENT_TYPE',
        ];

        foreach ($this->elements as $key => $value) {
            if (0 === strpos($key, 'HTTP_')) {
                $result[substr($key, 5)] = $value;
            } elseif (in_array($key, $contentHeaders, true)) {
                $result[$key] = $value;
            }
        }

        return $result;
    }
public function getHeaders(): array
    {
        $result = [];

        $contentHeaders = [
            'CONTENT_LENGTH',
            'CONTENT_MD5',
            'CONTENT_TYPE',
        ];

        foreach ($this->elements as $key => $value) {
            if (0 === strpos($key, 'HTTP_')) {
                $result[substr($key, 5)] = $value;
            } elseif (in_array($key, $contentHeaders, true)) {
                $result[$key] = $value;
            }
        }

        return $result;
    }
取回 HTTP HEADERS.

@return array