1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-01-31 06:02:07 +01:00

allow to override port

This commit is contained in:
Nikolay Kim 2019-03-13 22:55:01 -07:00
parent 38545dedc7
commit 265229b44b

View File

@ -61,6 +61,12 @@ impl<T: Address> Connect<T> {
}
}
/// 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()