asRegex

Casts this HeaderMatchMethod as a Regex and retrieves its kotlin.String value. Throws an exception if the HeaderMatchMethod is not a Regex.