Class AltSvcHeader

java.lang.Object
io.helidon.webclient.api.AltSvcHeader

public final class AltSvcHeader extends Object
Parsed, protocol-neutral Alt-Svc response header.
  • Method Details

    • create

      public static Optional<AltSvcHeader> create(ClientResponseHeaders headers, Instant receivedAt)
      Create an Alt-Svc update 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 headers
      receivedAt - 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

      public List<AltSvcHeader.Alternative> alternatives()
      Alternatives in received field order.
      Returns:
      immutable alternatives