UNPKG

@sigiljs/sigil

Version:

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

2 lines (1 loc) 208 B
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function e(t,o){const r=t.headers.host;return typeof r=="string"?r:Array.isArray(r)&&r.length>0?r[0]:null}exports.deriveHost=e;