UNPKG

@sigiljs/sigil

Version:

TypeScript-first Node.js HTTP framework offering schema-driven routing, modifier-based middleware, plugin extensibility, and flexible response templating

8 lines (7 loc) 163 B
function n(t, e) { const r = t.headers.host; return typeof r == "string" ? r : Array.isArray(r) && r.length > 0 ? r[0] : null; } export { n as deriveHost };