Package dev.relism.flash.http2.message
Class Http2HeaderMap
java.lang.Object
dev.relism.flash.http2.message.Http2HeaderMap
- All Implemented Interfaces:
HeaderView
Header view over stream-owned decoded HPACK storage. Pseudo-fields are excluded.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.relism.flash.models.HeaderView
HeaderView.HeaderConsumer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionall()Returns all header values in declaration order.Returns all values of headernamein declaration order, or an empty list.booleanWhether any header namednameis present.intcount()Total number of header lines (not distinct names — a repeated header counts once per line).Returns the first value of headername(case-insensitive), ornull.voidforEach(HeaderView.HeaderConsumer consumer) 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.voidreset(HpackHeaderBlock block) voidreset(HpackHeaderBlock block, PseudoHeaders pseudoHeaders) booleanvalueEqualsIgnoreCase(String name, String value) Case-insensitive comparison of the first value ofnameagainstvalue.dev.relism.fpr.core.ByteViewReturns a view over the first value ofname, ornull— see the implementation's own reuse-window contract.
-
Constructor Details
-
Http2HeaderMap
public Http2HeaderMap()
-
-
Method Details
-
reset
-
reset
-
first
Description copied from interface:HeaderViewReturns the first value of headername(case-insensitive), ornull.- Specified by:
firstin interfaceHeaderView
-
all
Description copied from interface:HeaderViewReturns all values of headernamein declaration order, or an empty list.- Specified by:
allin interfaceHeaderView
-
all
Description copied from interface:HeaderViewReturns all header values in declaration order.- Specified by:
allin interfaceHeaderView
-
view
Description copied from interface:HeaderViewReturns a view over the first value ofname, ornull— see the implementation's own reuse-window contract.- Specified by:
viewin interfaceHeaderView
-
valueEqualsIgnoreCase
Description copied from interface:HeaderViewCase-insensitive comparison of the first value ofnameagainstvalue.- Specified by:
valueEqualsIgnoreCasein interfaceHeaderView
-
contains
Description copied from interface:HeaderViewWhether any header namednameis present.- Specified by:
containsin interfaceHeaderView
-
count
public int count()Description copied from interface:HeaderViewTotal number of header lines (not distinct names — a repeated header counts once per line).- Specified by:
countin interfaceHeaderView
-
forEach
Description copied from interface:HeaderViewVisits 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:
forEachin interfaceHeaderView
-