Skip to content

Commit

Permalink
[wip, notes] Notes about how to implement the grpc response manipulation
Browse files Browse the repository at this point in the history
Signed-off-by: dd di cesare <[email protected]>
  • Loading branch information
didierofrivia committed Sep 10, 2024
1 parent 4c9b416 commit 154d9a2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/filter/http_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 154d9a2

Please sign in to comment.