@fanoutio/grip
Version:
GRIP Interface Library
19 lines • 758 B
TypeScript
import { type IFormat } from '../IFormat.js';
import { type IFormatExport } from '../IFormatExport.js';
export type ResponseParams = {
code?: string | null;
reason?: string | null;
headers?: Record<string, string> | null;
body?: Uint8Array | string | null;
};
export declare class HttpResponseFormat implements IFormat {
code: string | null;
reason: string | null;
headers: Record<string, string> | null;
body: Uint8Array | string | null;
constructor(responseObject: ResponseParams);
constructor(code?: string | null, reason?: string | null, headers?: Record<string, string> | null, body?: Uint8Array | string | null);
export(): IFormatExport;
name(): string;
}
//# sourceMappingURL=HttpResponseFormat.d.ts.map