Class Http2Util

java.lang.Object
io.helidon.http.http2.Http2Util

public final class Http2Util extends Object
HTTP/2 utility.
  • Field Details

    • PREFACE_LENGTH

      public static final int PREFACE_LENGTH
      Length of prior knowledge preface.
  • Method Details

    • isPreface

      public static boolean isPreface(byte[] bytes)
      Check if the bytes provided start with the prior knowledge preface.
      Parameters:
      bytes - bytes to check
      Returns:
      true if the bytes are preface bytes
    • prefaceData

      public static BufferData prefaceData()
      HTTP/2 preface data as a buffer data.
      Returns:
      a buffer that contains the preface