/** 避免源码中出现 https/http 连续字符，否则 Tailwind 扫描会误生成无效任意属性类 */
const c = String.fromCharCode(58);
const tlsScheme = String.fromCharCode(104, 116, 116, 112, 115);
const plainScheme = String.fromCharCode(104, 116, 116, 112);

export function tlsHost(host) {
  return `${tlsScheme}${c}//${host}`;
}

export function loopbackPort(host, port) {
  return `${plainScheme}${c}//${host}${c}${port}`;
}
