MCPcopy Create free account
hub / github.com/Superflows-AI/superflows / getHost

Function getHost

lib/edge-runtime/utils.ts:155–160  ·  view source on GitHub ↗
(req: NextRequest)

Source from the content-addressed store, hash-verified

153}
154
155export function getHost(req: NextRequest) {
156 // fallback is safe according to nextjs
157 // (github.com/vercel/next.js/issues/2469#issuecomment-313194091)
158 const protocol = req.headers.get("x-forwarded-proto") ?? "http";
159 return protocol + "://" + req.headers.get("host");
160}
161
162export function getParam(
163 parameters: Record<string, any>,

Callers 2

handlerFunction · 0.90
handlerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected