shouldApply static method

bool shouldApply(
  1. RequestBodyConfig config,
  2. String requestUrl,
  3. int statusCode
)

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);
}