private static int toIndex(boolean webSocket) {
        return webSocket ? 1 : 0;
    }
Determine {@link SslContext} by the specified {@link SessionProtocol}.
core/src/main/java/com/linecorp/armeria/client/Bootstraps.java