public function getHeader($name, $default = null)
    {
        if ($this->hasHeader($name)) {
            return $this->getHeaderValue($name);
        }

        if ($default === null) {
            throw new \OutOfBoundsException('Requested header is not configured');
        }

        return $default;
    }