java.lang.Object
io.helidon.http.http2.Http2Util
HTTP/2 utility.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Length of prior knowledge preface. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isPreface
(byte[] bytes) Check if the bytes provided start with the prior knowledge preface.static BufferData
HTTP/2 preface data as a buffer data.
-
Field Details
-
PREFACE_LENGTH
public static final int PREFACE_LENGTHLength 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
HTTP/2 preface data as a buffer data.- Returns:
- a buffer that contains the preface
-