UNPKG

ketting

Version:

Opinionated HATEOAS / Rest client.

13 lines (12 loc) 412 B
import { FetchMiddleware } from '../http/fetcher.js'; import Client from '../client.js'; /** * This middleware manages the cache based on information in requests * and responses. * * It expires items from the cache and updates the cache if `Content-Location` * appeared in the response. * * It's also responsible for emitting 'stale' events. */ export default function (client: Client): FetchMiddleware;