Interface HeaderMap.HeaderConsumer

Enclosing class:
HeaderMap
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 HeaderMap.HeaderConsumer
Callback for HeaderMap.forEach(dev.relism.flash.models.HeaderMap.HeaderConsumer). Implement with a reusable, field-holding instance (reset before each forEach call) rather than a capturing lambda if the call site itself needs to be allocation-free too — a capturing lambda is its own per-call allocation, same as anywhere else on a hot path (see docs/CODE-STYLE.md in the Pathway project for the idiom this mirrors).
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(dev.relism.fpr.core.ByteView name, dev.relism.fpr.core.ByteView value)
     
  • Method Details

    • accept

      void accept(dev.relism.fpr.core.ByteView name, dev.relism.fpr.core.ByteView value)