asRegexOrNull

Casts this HeaderMatchMethod as a Regex and retrieves its kotlin.String value. Returns null if the HeaderMatchMethod is not a Regex.