Something went wrong. Try again.
A lightweight reverse proxy built in Bun and typescript
Something went wrong. Try again.
1234567891011121314import * as http from 'http';
export class SimpleCache { private store: Record<string, { status: number, headers: http.OutgoingHttpHeaders, body: Buffer }> = {}; get(key: string) { return this.store[key]; } set(key: string, status: number, headers: http.OutgoingHttpHeaders, body: Buffer) { this.store[key] = { status, headers, body }; } }