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

Method clientChannel

netty/src/test/java/io/grpc/netty/TlsTest.java:405–411  ·  view source on GitHub ↗
(int port, SslContext sslContext)

Source from the content-addressed store, hash-verified

403
404
405 private static ManagedChannel clientChannel(int port, SslContext sslContext) throws IOException {
406 return NettyChannelBuilder.forAddress("localhost", port)
407 .overrideAuthority(TestUtils.TEST_SERVER_HOST)
408 .negotiationType(NegotiationType.TLS)
409 .sslContext(sslContext)
410 .build();
411 }
412
413 private static class SimpleServiceImpl extends SimpleServiceGrpc.SimpleServiceImplBase {
414 @Override

Calls 5

forAddressMethod · 0.95
buildMethod · 0.65
sslContextMethod · 0.45
negotiationTypeMethod · 0.45
overrideAuthorityMethod · 0.45

Tested by

no test coverage detected