@Override
                        protected void initChannel(final SocketChannel ch) {
                            final ChannelPipeline p = ch.pipeline();
                            if (sslCtx != null) {
                                p.addLast(sslCtx.newHandler(ch.alloc(), host, port));
                            }
                            p.addLast(
                                    new HttpClientCodec(),
                                    new HttpContentDecompressionHandler(),
                                    new HttpGremlinResponseStreamDecoder(serializer, Integer.MAX_VALUE),
                                    new HttpGremlinRequestEncoder(serializer,
                                            Collections.singletonList(
                                                    Pair.of("serializer", new PayloadSerializingInterceptor(
                                                            new GraphBinaryMessageSerializerV4()))),
                                            false, false, uri),
                                    callbackResponseHandler);
                        }
A simple, non-thread safe Gremlin Server client using HTTP. Typical use is for testing and demonstration.
gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/simple/SimpleHttpClient.java