Class AltSvcHeader
java.lang.Object
io.helidon.webclient.api.AltSvcHeader
Parsed, protocol-neutral
Alt-Svc response header.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classOne parsed alternative service. -
Method Summary
Modifier and TypeMethodDescriptionAlternatives in received field order.booleanclear()Whether this update clears alternatives previously learned for the origin.static Optional<AltSvcHeader> create(ClientResponseHeaders headers, Instant receivedAt) Create anAlt-Svcupdate by parsing all field lines atomically.
-
Method Details
-
create
Create anAlt-Svcupdate by parsing all field lines atomically. Up to 32 empty comma-list elements are ignored across all field lines, as required by RFC 9110's list-extension rules. Additional empty elements make the update malformed.- Parameters:
headers- response headersreceivedAt- time the response headers were received- Returns:
- parsed update, or empty when the field is absent or malformed
-
clear
public boolean clear()Whether this update clears alternatives previously learned for the origin.- Returns:
- whether this is a clear update
-
alternatives
Alternatives in received field order.- Returns:
- immutable alternatives
-