AwsInspector\Helper\Curl::getResponseHeader PHP Method

getResponseHeader() public method

public getResponseHeader ( string $header ) : mixed
$header string
return mixed
    public function getResponseHeader($header)
    {
        if (!isset($this->responseHeaders[$header])) {
            throw new \Exception("Header '{$header}' not found.");
        }
        return $this->responseHeaders[$header];
    }