MCPcopy Create free account
hub / github.com/github/copilot-sdk / getOrCreateSecureContext

Method getOrCreateSecureContext

test/harness/connectProxy.ts:273–280  ·  view source on GitHub ↗
(hostname: string)

Source from the content-addressed store, hash-verified

271 }
272
273 private getOrCreateSecureContext(hostname: string): tls.SecureContext {
274 let context = this.certCache.get(hostname);
275 if (!context) {
276 context = createSecureContextForHost(hostname, this.ca!);
277 this.certCache.set(hostname, context);
278 }
279 return context;
280 }
281
282 private pipeToRealTarget(
283 clientSocket: net.Socket,

Callers 1

handleConnectMethod · 0.95

Calls 3

getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected