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

Function normalizeUrlFromInput

packages/trigger-sdk/src/v3/retry.ts:117–127  ·  view source on GitHub ↗
(input: RequestInfo | URL | string)

Source from the content-addressed store, hash-verified

115}
116
117const normalizeUrlFromInput = (input: RequestInfo | URL | string): URL => {
118 if (typeof input === "string") {
119 return new URL(input);
120 }
121
122 if (input instanceof URL) {
123 return input;
124 }
125
126 return new URL(input.url);
127};
128
129const normalizeHttpMethod = (input: RequestInfo | URL | string, init?: RequestInit): string => {
130 if (typeof input === "string" || input instanceof URL) {

Callers 1

createFetchAttributesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…