summaryrefslogtreecommitdiff
path: root/u/server/response/index.ts
blob: 17a2d975dadd1375e8015ba1618aa2b0da94bbc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { Body } from '@emprespresso/pengueno';

export interface BaseResponse {
    status: number;
    statusText: string;
    headers: Record<string, string>;

    body(): Body;
}

export interface ResponseOpts {
    status: number;
    statusText?: string;
    headers?: Record<string, string>;
}

export * from './pengueno.js';
export * from './json_pengueno.js';