ApiServer constructor

ApiServer({
  1. required String name,
  2. required String host,
  3. int? port,
  4. String scheme = "http",
  5. ApiServerUriBuilder? uriBuilder,
})

Construct ApiServer

In name, specify a logical name of the server. In host, specify the hostname of the server. In port, specify the port of the server. In scheme, specify the scheme of the uri. In uriBuilder, specify the process of building uri to request to the server.

Implementation

ApiServer(
  {
    required String name,
    required String host,
    int? port,
    String scheme = "http",
    ApiServerUriBuilder? uriBuilder
  }
):_name= name,
  _host = host,
  _port = port,
  _scheme = scheme,
  _uriBuilder = uriBuilder;