From c32969c208df6ace55a4d5077aaf595ec851a649 Mon Sep 17 00:00:00 2001 From: hatoo Date: Sat, 22 Jun 2024 15:28:17 +0900 Subject: [PATCH] add few docs --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 3e9cb79..d8f68e1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -67,7 +67,8 @@ pub struct Upgrade { pub struct Communication { /// Client address pub client_addr: std::net::SocketAddr, - /// Request from client. request.uri() is an absolute URI. + /// Request from client. request.uri() is an absolute URI except for `CONNECT` method. + /// If you modify uri of `CONNECT` method, subsequent request will be sent to the modified uri (off course you can modify it). But `HOST` header remains the original value. pub request: Request, /// Send request back to server. You can modify request before sending it back. /// NOTE: If you drop this without send(), communication will be canceled and server will not receive request and client will get 500 Internal Server Error.