Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodiHttpAltSvcCache.Learn

procedure Learn(const aOrigin: tHttpAltSvcOrigin; const aFieldValue: string; aNowMS, aResponseAgeMS: UInt64);
Records what one response advertised. Call it only for a final (non-1xx) response received over a connection authenticated for that origin, with all its Alt-Svc field values joined by ','; do not call it for a response without the field, which changes nothing. The first same-host h3 alternative becomes the origin's route, for its ma (one day when absent, and at most one day) less aResponseAgeMS. A value that is malformed, names no same-host h3 alternative, contains clear or is already stale removes the origin's route instead. Advertising the same port again keeps a suppression set by Failed. At most 64 origins are kept; the least recently used is dropped first.