MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / requestUrl

Function requestUrl

apps/webapp/app/utils/requestUrl.server.ts:2–10  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

1// Updates the protocol of the request url to match the request.headers x-forwarded-proto
2export function requestUrl(request: Request): URL {
3 const url = new URL(request.url);
4
5 if (request.headers.get("x-forwarded-proto") === "https") {
6 url.protocol = "https:";
7 }
8
9 return url;
10}

Callers 9

featuresForRequestFunction · 0.90
createHttpSourceRequestFunction · 0.90
actionFunction · 0.90
loaderFunction · 0.90
loaderFunction · 0.90
actionFunction · 0.90
loaderFunction · 0.90
loaderFunction · 0.90
callMethod · 0.90

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…