MCPcopy Create free account
hub / github.com/loopbackio/loopback-next / givenCachingProxy

Function givenCachingProxy

examples/todo/src/__tests__/helpers.ts:67–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65
66export {HttpCachingProxy};
67export async function givenCachingProxy() {
68 const proxy = new HttpCachingProxy({
69 cachePath: path.resolve(__dirname, '.http-cache'),
70 logError: false,
71 timeout: 5000,
72 });
73 await proxy.start();
74 return proxy;
75}
76
77export async function isGeoCoderServiceAvailable(service: Geocoder) {
78 try {

Callers 2

todo.acceptance.tsFile · 0.90

Calls 2

startMethod · 0.95
resolveMethod · 0.80

Tested by

no test coverage detected