AltSvcAlternative
AltSvcAlternative =
object
Defined in: packages/format-http/src/alt-svc.ts:9
One alternative service an Alt-Svc field advertises (RFC 7838 §3).
Properties
Section titled “Properties”
readonlyhost:string
Defined in: packages/format-http/src/alt-svc.ts:17
The alternative’s host, without the brackets of an IPv6 literal; empty when it is the origin’s own host.
maxAge
Section titled “maxAge”
readonlymaxAge:number
Defined in: packages/format-http/src/alt-svc.ts:22
Seconds the alternative stays fresh (ma), 86400 when unstated.
persist
Section titled “persist”
readonlypersist:boolean
Defined in: packages/format-http/src/alt-svc.ts:25
Whether it stays valid across a change of network (persist=1).
readonlyport:number
Defined in: packages/format-http/src/alt-svc.ts:19
protocol
Section titled “protocol”
readonlyprotocol:string
Defined in: packages/format-http/src/alt-svc.ts:11
The ALPN protocol ID, percent-decoded: h3.