diff --git a/actix-connect/src/connect.rs b/actix-connect/src/connect.rs index a82298de..2fd05a17 100644 --- a/actix-connect/src/connect.rs +++ b/actix-connect/src/connect.rs @@ -61,6 +61,12 @@ impl Connect { } } + /// Set port + pub fn set_port(mut self, port: u16) -> Self { + self.port = port; + self + } + /// Host name pub fn host(&self) -> &str { self.req.host()