antoinechalifour/memento

Using without http server

user753 opened this issue · 1 comments

I would like to use it in tests like this

const mementoClient = MementoClient({
  cacheDirectory: path.join(__dirname, '<path to cache directory>')
});
const response = await mementoClient.request({url: 'foo', requestHeaders: [], ...})

I believe it should work faster than requests through http

Love this feature! Im adding it to my roadmap