asHeaderValues

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

Receiver

candidate value provided by generated code.

Return

receiver cast to HeaderValues with the expected value type.

Parameters

T

expected header value type.

See also

Throws

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