asHeaderValues

Casts the receiver to HeaderValues of T, failing with a descriptive error otherwise.

Receiver

candidate value provided by the client DSL.

Return

the receiver cast to HeaderValues with the expected value type.

See also

Throws

when the receiver is not a HeaderValues instance of the expected type.