Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • MiniBrowserEndpoint

Implements

Index

Constructors

Properties

attachRequestHandlerPromise: Promise<void>
contributions: ContributionProvider<MiniBrowserEndpointHandler>
handlers: Map<string, MiniBrowserEndpointHandler> = ...
logger: ILogger

Methods

  • attachRequestHandler(app: Application): Promise<void>
  • configure(app: Application): void
  • defaultHandler(): ((statWithContent: FileStatWithContent, response: Response<any, Record<string, any>>) => MaybePromise<Response<any, Record<string, any>>>)
  • errorHandler(): ((error: any, uri: string, response: Response<any, Record<string, any>>) => MaybePromise<Response<any, Record<string, any>>>)
  • Returns ((error: any, uri: string, response: Response<any, Record<string, any>>) => MaybePromise<Response<any, Record<string, any>>>)

      • (error: any, uri: string, response: Response<any, Record<string, any>>): MaybePromise<Response<any, Record<string, any>>>
      • Parameters

        • error: any
        • uri: string
        • response: Response<any, Record<string, any>>

        Returns MaybePromise<Response<any, Record<string, any>>>

  • getUri(request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>): MaybePromise<string>
  • getVirtualHostRegExp(): Promise<RegExp>
  • missingResourceHandler(): ((uri: string, response: Response<any, Record<string, any>>) => MaybePromise<Response<any, Record<string, any>>>)
  • Returns ((uri: string, response: Response<any, Record<string, any>>) => MaybePromise<Response<any, Record<string, any>>>)

      • (uri: string, response: Response<any, Record<string, any>>): MaybePromise<Response<any, Record<string, any>>>
      • Parameters

        • uri: string
        • response: Response<any, Record<string, any>>

        Returns MaybePromise<Response<any, Record<string, any>>>

  • onStart(): Promise<void>
  • response(uri: string, response: Response<any, Record<string, any>>): Promise<Response<any, Record<string, any>>>
  • supportedFileExtensions(): Promise<Readonly<{ extension: string; priority: number }>[]>