Interface ExtensionSpec.Body

All Known Subinterfaces:
ExtensionSpec.WholeHelloBody
Enclosing class:
ExtensionSpec
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ExtensionSpec.Body
Makes an extension's body for one hello.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    The body for this hello.
  • Method Details

    • encode

      byte[] encode(HelloContext context)
      The body for this hello.
      Parameters:
      context - the hello's per-connection inputs
      Returns:
      the body, or null to leave the extension out of this hello