ApiServer constructor
ApiServer({
- required String name,
- required String host,
- int? port,
- String scheme = "http",
- 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;