Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MiniBrowserEndpoint

Hierarchy

  • MiniBrowserEndpoint

Implements

Index

Properties

Private attachRequestHandlerPromise

attachRequestHandlerPromise: Promise<void>

Protected Readonly contributions

Protected Readonly handlers

handlers: Map<string, MiniBrowserEndpointHandler> = new Map()

Protected Readonly logger

logger: ILogger

Static HANDLE_PATH

HANDLE_PATH: string = "/mini-browser/"

Endpoint path to handle the request for the given resource.

deprecated

since 1.8.0

Methods

Protected attachRequestHandler

  • attachRequestHandler(app: Application): Promise<void>

configure

  • configure(app: Application): void

Protected defaultHandler

Protected errorHandler

  • errorHandler(): (error: any, uri: string, response: Response) => MaybePromise<Response>

Protected getContributions

Protected getUri

Protected getVirtualHostRegExp

  • getVirtualHostRegExp(): Promise<RegExp>

Protected missingResourceHandler

  • missingResourceHandler(): (uri: string, response: Response) => MaybePromise<Response>

onStart

  • onStart(): Promise<void>

Protected readContent

Protected response

  • response(uri: string, response: Response): Promise<Response>

supportedFileExtensions

  • supportedFileExtensions(): Promise<Readonly<{ extension: string; priority: number }>[]>