/// Add a given HTTP service.
Add a given HTTP service.
Add a given HTTP service .
fn add_http_service(&mut self, addr: &str) {
        let addr = net::utils::get_socket_address(addr);
        let addr = result_or_usage(addr);
        let mac = get_fake_mac_address(0xffff, &addr);
        let service = Service::HTTP(mac, addr);
        self.app_context.config.add_static(service.clone());
        self.default_svc_table.add_static(service);
    }
fn add_http_service ( & mut self , addr : & str ) { let addr = net :: utils :: get_socket_address ( addr ) ; let addr = result_or_usage ( addr ) ; let mac = get_fake_mac_address ( 0xffff , & addr ) ; let service = Service :: HTTP ( mac , addr ) ; self . app_context . config . add_static ( service . clone ( ) ) ; self . default_svc_table . add_static ( service ) ; }
Add a given HTTP service.
Add a given HTTP service .
&mut self
addr
&str