From 154d9a226c571efb9dba24391658a7da0ec181c7 Mon Sep 17 00:00:00 2001 From: dd di cesare Date: Mon, 9 Sep 2024 11:37:01 +0200 Subject: [PATCH] [wip, notes] Notes about how to implement the grpc response manipulation Signed-off-by: dd di cesare --- src/filter/http_context.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/filter/http_context.rs b/src/filter/http_context.rs index 2290266d..89ce52a2 100644 --- a/src/filter/http_context.rs +++ b/src/filter/http_context.rs @@ -133,6 +133,11 @@ impl Context for Filter { } }; + // Get the type of Response (RL/AUTH), we have the token_id that could tell us which OP was triggered and the resp_bytes, + // this could be part of the Service mod instead of OpsDispatcher. + // Create separated fns for treating the response for RL and Auth here + // Filter decides what to do and calls the FSM + let rl_resp: RateLimitResponse = match Message::parse_from_bytes(&res_body_bytes) { Ok(res) => res, Err(e) => {