shouldApply static method
Verifica si una configuración debe aplicarse para una URL y status code
Implementation
static bool shouldApply(
RequestBodyConfig config,
String requestUrl,
int statusCode,
) {
// Check status code range (inclusive)
if (statusCode < config.fromStatus || statusCode > config.toStatus) {
return false;
}
// Check URL pattern with wildcard support
// Use exact matching for URLs to prevent false positives
return WildcardMatcher.matchesExact(requestUrl, config.url);
}