UNPKG

@hom3chuk/tektek

Version:

A library for detecting technologies used within HTTP Archive (HAR)

19 lines (18 loc) 511 B
import { anyResourceHeaderContains } from "../../common/index.js"; var detectFastly = function (har, asap) { if (asap === void 0) { asap = true; } var res = { detected: false, name: 'Fastly', reasons: [], }; if (anyResourceHeaderContains(har, 'server', 'fastly')) { res.detected = true; res.reasons.push('resource server header mentions fastly'); if (asap) { return res; } } return res; }; export default detectFastly;