RequestBodyMatcher class
Utilidad para manejar la configuración de captura de request/response bodies Soporte para wildcards en URLs y rangos de status codes
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
createExampleConfigs(
) → List< RequestBodyConfig> - Crea configuraciones de ejemplo para testing/documentación
-
findMatchingConfig(
String requestUrl, int statusCode, List< RequestBodyConfig> configs) → RequestBodyConfig? - Encuentra la configuración que debe aplicarse para una URL y status code dados Retorna la primera configuración que coincida, o null si ninguna aplica
-
getCaptureFlags(
String requestUrl, int statusCode, List< RequestBodyConfig> configs) → Map<String, bool> - Determina qué debe capturarse basado en la configuración encontrada Retorna un mapa con las flags de captura
-
shouldApply(
RequestBodyConfig config, String requestUrl, int statusCode) → bool - Verifica si una configuración debe aplicarse para una URL y status code
-
shouldCaptureRequestBody(
String requestUrl, int statusCode, List< RequestBodyConfig> configs) → bool - Verifica si se debe capturar el request body para una URL y status
-
shouldCaptureResponseBody(
String requestUrl, int statusCode, List< RequestBodyConfig> configs) → bool - Verifica si se debe capturar el response body para una URL y status
-
validateConfigs(
List< RequestBodyConfig> configs) → List<String> - Valida que una lista de configuraciones esté bien formada