parseAltSvc
parseAltSvc(
value):AltSvc
Defined in: packages/format-http/src/alt-svc.ts:65
Parse an Alt-Svc field value (RFC 7838 §3). Several field lines are one
value joined with commas.
Empty list elements are skipped and unknown parameters ignored; ma must be
a number of seconds. A value past Number.MAX_SAFE_INTEGER reads as that
integer. Time and memory are linear in the value’s length.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Throws
Section titled “Throws”When the value breaks the grammar, a protocol ID holds a malformed percent-encoding, or a port exceeds 65535. RFC 7838 has a client ignore such a field: use tryParseAltSvc for that.