UNPKG

@nasriya/hypercloud

Version:

Nasriya HyperCloud is a lightweight Node.js HTTP2 framework.

15 lines (14 loc) 418 B
import helpers from "../../../utils/helpers.js"; class DNSPrefetchControl { static validate(options) { if (options === false) { return null; } if (!options || helpers.isNot.realObject(options) || !('enabled' in options)) { return 'off'; } const { enabled } = options; return enabled ? "on" : "off"; } } export default DNSPrefetchControl;