Skip to content

FileAnswer beta ​

Interface of @v12-engine/editor/vite

ts
export interface FileAnswer

What the editor's file handler answers to a request: a status, a body and headers

Members ​

body ​

ts
body: unknown;

The answer's content, sent as the response body

headers ​

ts
headers?: Record<string, string>;

Headers besides the body's type: a map's version (x-map-version)

status ​

ts
status: number;

The HTTP status of the answer