Interface MiniBrowserEndpointHandler

interface MiniBrowserEndpointHandler {
    priority(): number;
    respond(statWithContent, response): MaybePromise<Response<any, Record<string, any>>>;
    supportedExtensions(): MaybePromise<string | string[]>;
}

Implemented by

Methods

  • Returns with or resolves to the file extensions supported by the current mini-browser endpoint handler. The file extension must not start with the leading . (dot). For instance; 'html' or ['jpg', 'jpeg']. The file extensions are case insensitive.

    Returns MaybePromise<string | string[]>