Package org.eclipse.jetty.http3
Class Grease
java.lang.Object
org.eclipse.jetty.http3.Grease
A class to support GREASE (RFC 8701) in HTTP/3.
HTTP/3 GREASE values have the form 0x1F * N + 0x21
with non negative values of N
.
-
Method Summary
-
Method Details
-
isGreaseValue
public static boolean isGreaseValue(long value) - Parameters:
value
- the value to test- Returns:
- whether the value is a GREASE value as defined by HTTP/3
-
generateGreaseValue
public static long generateGreaseValue()- Returns:
- a random grease value as defined by HTTP/3
-