List of usage examples for io.netty.handler.codec.http2 Http2ConnectionHandler subclass-usage
From source file com.flysoloing.learning.network.netty.http2.helloworld.server.HelloWorldHttp2Handler.java
/** * A simple handler that responds with the message "Hello World!". */ public final class HelloWorldHttp2Handler extends Http2ConnectionHandler implements Http2FrameListener { static final ByteBuf RESPONSE_BYTES = unreleasableBuffer(copiedBuffer("Hello World", CharsetUtil.UTF_8));
From source file com.hop.hhxx.example.http2.helloworld.server.HelloWorldHttp2Handler.java
/** * A simple handler that responds with the message "Hello World!". */ public final class HelloWorldHttp2Handler extends Http2ConnectionHandler implements Http2FrameListener { static final ByteBuf RESPONSE_BYTES = unreleasableBuffer(copiedBuffer("Hello World", CharsetUtil.UTF_8));
From source file com.linecorp.armeria.internal.AbstractHttp2ConnectionHandler.java
/** * An {@link Http2ConnectionHandler} with some workarounds and additional extension points. */ public abstract class AbstractHttp2ConnectionHandler extends Http2ConnectionHandler { /**
From source file com.linecorp.armeria.internal.http.AbstractHttp2ConnectionHandler.java
public abstract class AbstractHttp2ConnectionHandler extends Http2ConnectionHandler { /** * XXX(trustin): Don't know why, but {@link Http2ConnectionHandler} does not close the last stream * on a cleartext connection, so we make sure all streams are closed. */
From source file com.linkedin.r2.transport.http.client.Http2StreamCodec.java
/**
* Encodes {@link StreamRequest} and {@link RestRequest} to HTTP/2 frames and decodes HTTP/2
* frames to StreamRequest and RestRequest. Http/2 stream level errors should cause only the
* stream to be reset, not the entire connection. As a result, errors specific to a stream
* should not result in throwing non HTTP/2 stream exceptions in this codec.
*/
From source file com.relayrides.pushy.apns.ApnsClientHandler.java
class ApnsClientHandler extends Http2ConnectionHandler { private long nextStreamId = 1; private final Map<Integer, ApnsPushNotification> pushNotificationsByStreamId = new HashMap<>(); private final Map<Integer, String> authenticationTokensByStreamId = new HashMap<>();
From source file com.superman.netty.http2.helloworld.server.HelloWorldHttp2Handler.java
/** * A simple handler that responds with the message "Hello World!". */ public final class HelloWorldHttp2Handler extends Http2ConnectionHandler implements Http2FrameListener { static final ByteBuf RESPONSE_BYTES = unreleasableBuffer(copiedBuffer("Hello World", CharsetUtil.UTF_8));
From source file com.turo.pushy.apns.AbstractMockApnsServerHandler.java
abstract class AbstractMockApnsServerHandler extends Http2ConnectionHandler implements Http2FrameListener { private final boolean emulateInternalErrors; private final Http2Connection.PropertyKey apnsIdPropertyKey;
From source file com.turo.pushy.apns.ApnsClientHandler.java
class ApnsClientHandler extends Http2ConnectionHandler implements Http2FrameListener, Http2Connection.Listener { private final Map<Integer, PushNotificationPromise> unattachedResponsePromisesByStreamId = new IntObjectHashMap<>(); private final Http2Connection.PropertyKey responseHeadersPropertyKey; private final Http2Connection.PropertyKey responsePromisePropertyKey;
From source file com.turo.pushy.apns.BenchmarkApnsServerHandler.java
class BenchmarkApnsServerHandler extends Http2ConnectionHandler implements Http2FrameListener { private static final Http2Headers SUCCESS_HEADERS = new DefaultHttp2Headers() .status(HttpResponseStatus.OK.codeAsText()); public static final class BenchmarkApnsServerHandlerBuilder extends