Interface ChunkHeaderProvider

  • All Superinterfaces:
    Resettable
    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 interface ChunkHeaderProvider
    extends Resettable
    A functional interface for defining a header of a chunk.

    The header usually depends on the chunk-data itself (hex-size), but is not required to. In RFC-7230, the chunk-header is specifically the chunk-size, but this interface can give us greater flexibility.