Class Grease

java.lang.Object
org.eclipse.jetty.http3.Grease

public class Grease extends Object

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 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