public get ( string $name, mixed $default = null, boolean $first = true ) : string | array | ||
$name | string | the name of the header to return |
$default | mixed | the value to return in case the named header does not exist |
$first | boolean | whether to only return the first header of the specified name. If false, all headers of the specified name will be returned. |
return | string | array | the named header(s). If `$first` is true, a string will be returned; If `$first` is false, an array will be returned. |