public function getHeader(string $key): ?string
    {
        $this->buildStructuredHeaders();
        $lkey = strtolower($key);
        $header = null;
        if (isset($this->structuredHeaders[$lkey]['value'])) {
            $header = $this->structuredHeaders[$lkey]['value'];
        }
        return $header;
    }