variable REQUESTS_KEPT

How many requests a session keeps.

A REPL that is left open all afternoon against a polling endpoint should not be the reason the process runs out of memory, and nobody has ever gone looking for their two-hundredth-oldest request. The bodies are what make this worth capping at all.

import { REQUESTS_KEPT } from './http-service.ts';

REQUESTS_KEPT > 0; // true

Type

200

Usage

import { REQUESTS_KEPT } from "lib/repl/http-service.ts";