mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-31 17:07:01 +02:00
simplify Application creation; update url dispatch guide section
This commit is contained in:
@@ -21,6 +21,7 @@ pub struct ConnectionInfo<'a> {
|
||||
impl<'a> ConnectionInfo<'a> {
|
||||
|
||||
/// Create *ConnectionInfo* instance for a request.
|
||||
#[cfg_attr(feature = "cargo-clippy", allow(cyclomatic_complexity))]
|
||||
pub fn new<S>(req: &'a HttpRequest<S>) -> ConnectionInfo<'a> {
|
||||
let mut host = None;
|
||||
let mut scheme = None;
|
||||
|
Reference in New Issue
Block a user