Class Http2Util

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

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

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Length of prior knowledge preface.
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    isPreface(byte[] bytes)
    Check if the bytes provided start with the prior knowledge preface.
    static io.helidon.common.buffers.BufferData
    HTTP/2 preface data as a buffer data.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 io.helidon.common.buffers.BufferData prefaceData()
      HTTP/2 preface data as a buffer data.
      Returns:
      a buffer that contains the preface