UNPKG

ketting

Version:

Opiniated HATEAOS / Rest client.

13 lines (12 loc) 406 B
import { FetchMiddleware } from '../http/fetcher'; import Client from '../client'; /** * 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;