Skip to content

AltSvcAlternative

AltSvcAlternative = object

Defined in: packages/format-http/src/alt-svc.ts:9

One alternative service an Alt-Svc field advertises (RFC 7838 §3).

readonly host: 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.


readonly maxAge: number

Defined in: packages/format-http/src/alt-svc.ts:22

Seconds the alternative stays fresh (ma), 86400 when unstated.


readonly persist: boolean

Defined in: packages/format-http/src/alt-svc.ts:25

Whether it stays valid across a change of network (persist=1).


readonly port: number

Defined in: packages/format-http/src/alt-svc.ts:19


readonly protocol: string

Defined in: packages/format-http/src/alt-svc.ts:11

The ALPN protocol ID, percent-decoded: h3.