C: C3 x-slinuxm-peer response header on every proxied outcome

This commit is contained in:
ari committed 2026-10-19 22:35:51 -04:00
1 parent bab6959a94
commit 58012018d9
4 files changed
+34 -8

No files matched your search

+3
View File
@@ -27,6 +27,9 @@ use crate::error::AppError;
const HOP_HEADER: &str = "x-slinuxm-hop";
const TRACEPARENT: &str = "traceparent";
/// Response header naming the peer a proxied response came from.
pub(crate) const PEER_HEADER: &str = "x-slinuxm-peer";
/// Reject an inbound hop marker. Any value counts: a consolidator must not
/// forward a request that has already been proxied.
pub(crate) fn reject_inbound_hop(peer: &str, headers: &HeaderMap) -> Result<(), AppError> {