src/content/httpContent.ts
import type { OutgoingHttpHeaders } from 'node:http';
import type { Readable } from 'stream';
export abstract class HttpContent {
private _headers: OutgoingHttpHeaders = {};
public get headers(): OutgoingHttpHeaders {
return this._headers;
}
public abstract readAsync(): Promise<
string | Record<string, unknown> | Record<string, unknown>[] | Readable
>;
}