MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / isAllowedUrl

Function isAllowedUrl

sdk/src/tools/read-url.ts:22–24  ·  view source on GitHub ↗
(url: URL)

Source from the content-addressed store, hash-verified

20}
21
22function isAllowedUrl(url: URL): boolean {
23 return url.protocol === 'http:' || url.protocol === 'https:'
24}
25
26function getHeader(headers: Headers, name: string): string | undefined {
27 return headers.get(name) ?? undefined

Callers 1

readUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected