Enum ValidationOutcome
Defined in File handler_context.hpp
Enum Documentation
-
enum class ros2_medkit_gateway::ValidationOutcome
Outcome when validate_entity_for_route() rejects the request.
Disambiguates the two reasons a validation can fail:
kErrorSent: an error response (400/404) was written to
reskForwarded: the request was proxied to a peer gateway (aggregation)
In both cases the handler must
returnimmediately - the HTTP response is already committed. The distinction exists so that callers who need to (e.g., logging, metrics) can tell the two apart.Values:
-
enumerator kErrorSent
-
enumerator kForwarded