MCPcopy Create free account
hub / github.com/grpc/grpc-java / server

Method server

okhttp/src/test/java/io/grpc/okhttp/TlsTest.java:744–750  ·  view source on GitHub ↗
(ServerCredentials creds)

Source from the content-addressed store, hash-verified

742 }
743
744 private static Server server(ServerCredentials creds) throws IOException {
745 return OkHttpServerBuilder.forPort(0, creds)
746 .directExecutor()
747 .addService(new SimpleServiceImpl())
748 .build()
749 .start();
750 }
751
752 private static ManagedChannelBuilder<?> clientChannelBuilder(
753 Server server, ChannelCredentials creds) {

Calls 5

forPortMethod · 0.95
startMethod · 0.65
buildMethod · 0.65
addServiceMethod · 0.45
directExecutorMethod · 0.45

Tested by

no test coverage detected