java.lang.Object
io.helidon.http.http2.Http2Util
HTTP/2 utility.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intLength of prior knowledge preface. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisPreface(byte[] bytes) Check if the bytes provided start with the prior knowledge preface.static BufferDataHTTP/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:
trueif the bytes are preface bytes
-
prefaceData
HTTP/2 preface data as a buffer data.- Returns:
- a buffer that contains the preface
-