getFirstValueOrFail

Returns the first header value from the collection, throwing if it is missing.

Return

the first value contained in the header.

See also

Throws

when the collection of values is empty.