Class Http2Utils

java.lang.Object
com.linkedin.alpini.netty4.misc.Http2Utils

public final class Http2Utils extends Object
HTTP/2 utility methods.
  • Method Details

    • isTooManyActiveStreamsError

      public static boolean isTooManyActiveStreamsError(Throwable t)
      Checks if an exception is thrown because of too many active streams.
      Parameters:
      t - Exception
      Returns:
      true if caused by active streams limit
    • isHttp2Pipeline

      @Deprecated public static boolean isHttp2Pipeline(io.netty.channel.ChannelPipeline pipeline)
      Deprecated.
    • isHttp2ParentChannelPipeline

      public static boolean isHttp2ParentChannelPipeline(io.netty.channel.ChannelPipeline pipeline)
    • isUnexpectedError

      public static boolean isUnexpectedError(long errorCode, boolean fromRemote)
    • isUnexpectedError

      public static boolean isUnexpectedError(@Nullable io.netty.handler.codec.http2.Http2Error errorEnum)
    • isUnexpectedError

      public static boolean isUnexpectedError(@Nullable io.netty.handler.codec.http2.Http2Error errorEnum, boolean fromRemote)
      Returns true, if the enum is a known error or unknown error code.