QDotREST constructor

QDotREST({
  1. dynamic host,
  2. dynamic port,
  3. List<Endpoint>? endpoints,
})

Implementation

QDotREST({host,port,List<Endpoint>? endpoints}){
  if(host!=null) _host = host;
  if(port!=null) _port = port;
  if(endpoints!=null){
    for(Endpoint e in endpoints){
      this.endpoints[URIHandler.generateRegex(e.urlpattern)] = e;
    }
  }
}