Server.create constructor

Server.create({
  1. required List<Service> services,
  2. ServerKeepAliveOptions keepAliveOptions = const ServerKeepAliveOptions(),
  3. List<Interceptor> interceptors = const <Interceptor>[],
  4. List<ServerInterceptor> serverInterceptors = const <ServerInterceptor>[],
  5. CodecRegistry? codecRegistry,
  6. 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>[],
  List<ServerInterceptor> serverInterceptors = const <ServerInterceptor>[],
  CodecRegistry? codecRegistry,
  GrpcErrorHandler? errorHandler,
}) : super(
       services,
       interceptors,
       serverInterceptors,
       codecRegistry,
       errorHandler,
       keepAliveOptions,
     );