Server.create constructor
Server.create({
- required List<
Service> services, - ServerKeepAliveOptions keepAliveOptions = const ServerKeepAliveOptions(),
- List<
Interceptor> interceptors = const <Interceptor>[], - CodecRegistry? codecRegistry,
- GrpcErrorHandler? errorHandler,
Create a server for the given services
.
Implementation
Server.create({
required List<Service> services,
ServerKeepAliveOptions keepAliveOptions = const ServerKeepAliveOptions(),
List<Interceptor> interceptors = const <Interceptor>[],
CodecRegistry? codecRegistry,
GrpcErrorHandler? errorHandler,
}) : super(
services,
interceptors,
codecRegistry,
errorHandler,
keepAliveOptions,
);