diff --git a/docs/user_guide/ctx.md b/docs/user_guide/ctx.md index 2d585e667..73775fe76 100644 --- a/docs/user_guide/ctx.md +++ b/docs/user_guide/ctx.md @@ -14,7 +14,7 @@ pub struct MyCtx { beta_user: bool, } -fn check_beta_user(req: &pingora_http::RequestHeader) -> bool { +fn check_beta_user(req: &pingora::http::RequestHeader) -> bool { // some simple logic to check if user is beta req.headers.get("beta-flag").is_some() } @@ -113,4 +113,4 @@ impl ProxyHttp for MyProxy { The complete example can be found under [`pingora-proxy/examples/ctx.rs`](../../pingora-proxy/examples/ctx.rs). You can run it using `cargo`: ``` RUST_LOG=INFO cargo run --example ctx -``` \ No newline at end of file +```