     }
   }
 
-  public init(url: String = "http://localhost", port: Int = 1234) {
+  public init(url: String = "http://localhost", port: Int = 1234, allowInsecureCertificates: Bool = false) {
     self.url = url
     self.port = port
+    self.allowInsecureCertificates = allowInsecureCertificates
+
+    super.init()
     Router.baseURLString = baseUrl
   }
 

    }
  }
}


  // MARK: - Networking

  private lazy var session = {
    return URLSession(configuration: .ephemeral, delegate: self, delegateQueue: nil)
  }()

  private func performNetworkRequest(for router: Router, promise: Promise<String, NSError>) {
    let task: URLSessionDataTask?
