MCPcopy
hub / github.com/sindresorhus/got / usesUnixSocket

Function usesUnixSocket

source/core/options.ts:926–928  ·  view source on GitHub ↗
(url: URL)

Source from the content-addressed store, hash-verified

924const bodyHeaderNames = ['content-length', 'content-encoding', 'content-language', 'content-location', 'content-type', 'transfer-encoding'] as const;
925
926function usesUnixSocket(url: URL): boolean {
927 return url.protocol === 'unix:' || getUnixSocketPath(url) !== undefined;
928}
929
930function hasCredentialInUrl(url: string | URL | undefined, credential: 'username' | 'password'): boolean {
931 if (url instanceof URL) {

Callers 2

urlMethod · 0.85

Calls 1

getUnixSocketPathFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…