Class Http2HeaderMap

java.lang.Object
dev.relism.flash.http2.message.Http2HeaderMap
All Implemented Interfaces:
HeaderView

public final class Http2HeaderMap extends Object implements HeaderView
Header view over stream-owned decoded HPACK storage. Pseudo-fields are excluded.
  • Constructor Details

    • Http2HeaderMap

      public Http2HeaderMap()
  • Method Details

    • reset

      public void reset(HpackHeaderBlock block, PseudoHeaders pseudoHeaders)
    • reset

      public void reset(HpackHeaderBlock block)
    • first

      public String first(String name)
      Description copied from interface: HeaderView
      Returns the first value of header name (case-insensitive), or null.
      Specified by:
      first in interface HeaderView
    • all

      public List<String> all(String name)
      Description copied from interface: HeaderView
      Returns all values of header name in declaration order, or an empty list.
      Specified by:
      all in interface HeaderView
    • all

      public List<String> all()
      Description copied from interface: HeaderView
      Returns all header values in declaration order.
      Specified by:
      all in interface HeaderView
    • view

      public dev.relism.fpr.core.ByteView view(String name)
      Description copied from interface: HeaderView
      Returns a view over the first value of name, or null — see the implementation's own reuse-window contract.
      Specified by:
      view in interface HeaderView
    • valueEqualsIgnoreCase

      public boolean valueEqualsIgnoreCase(String name, String value)
      Description copied from interface: HeaderView
      Case-insensitive comparison of the first value of name against value.
      Specified by:
      valueEqualsIgnoreCase in interface HeaderView
    • contains

      public boolean contains(String name)
      Description copied from interface: HeaderView
      Whether any header named name is present.
      Specified by:
      contains in interface HeaderView
    • count

      public int count()
      Description copied from interface: HeaderView
      Total number of header lines (not distinct names — a repeated header counts once per line).
      Specified by:
      count in interface HeaderView
    • forEach

      public void forEach(HeaderView.HeaderConsumer consumer)
      Description copied from interface: HeaderView
      Visits every header in declaration order without allocating a per-header object — see each implementation's Javadoc for exactly which instances are reused and their validity window.
      Specified by:
      forEach in interface HeaderView