Search
Preparing search index...
The search index is not available
Theia TypeDoc
Options
All
Public
Public/Protected
All
Inherited
Menu
Theia TypeDoc
mini-browser
MiniBrowserEndpoint
Class MiniBrowserEndpoint
Hierarchy
MiniBrowserEndpoint
Implements
BackendApplicationContribution
MiniBrowserService
Index
Constructors
constructor
Properties
attach
Request
Handler
Promise
contributions
handlers
logger
HANDLE_
PATH
Methods
attach
Request
Handler
configure
default
Handler
error
Handler
get
Contributions
get
Uri
get
Virtual
Host
Reg
Exp
missing
Resource
Handler
on
Start
read
Content
response
supported
File
Extensions
Constructors
constructor
new
Mini
Browser
Endpoint
(
)
:
MiniBrowserEndpoint
Returns
MiniBrowserEndpoint
Properties
Private
attach
Request
Handler
Promise
attach
Request
Handler
Promise
:
Promise
<
void
>
Protected
Readonly
contributions
contributions
:
ContributionProvider
<
MiniBrowserEndpointHandler
>
Protected
Readonly
handlers
handlers
:
Map
<
string
,
MiniBrowserEndpointHandler
>
= ...
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
attach
Request
Handler
attach
Request
Handler
(
app
:
Application
)
:
Promise
<
void
>
Parameters
app:
Application
Returns
Promise
<
void
>
configure
configure
(
app
:
Application
)
:
void
Parameters
app:
Application
Returns
void
Protected
default
Handler
default
Handler
(
)
:
(
statWithContent
:
FileStatWithContent
, response
:
Response
<
any
,
Record
<
string
,
any
>
>
)
=>
MaybePromise
<
Response
<
any
,
Record
<
string
,
any
>
>
>
Returns
(
statWithContent
:
FileStatWithContent
, response
:
Response
<
any
,
Record
<
string
,
any
>
>
)
=>
MaybePromise
<
Response
<
any
,
Record
<
string
,
any
>
>
>
(
statWithContent
:
FileStatWithContent
, response
:
Response
<
any
,
Record
<
string
,
any
>
>
)
:
MaybePromise
<
Response
<
any
,
Record
<
string
,
any
>
>
>
Parameters
statWithContent:
FileStatWithContent
response:
Response
<
any
,
Record
<
string
,
any
>
>
Returns
MaybePromise
<
Response
<
any
,
Record
<
string
,
any
>
>
>
Protected
error
Handler
error
Handler
(
)
:
(
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
>
>
>
Protected
get
Contributions
get
Contributions
(
)
:
MiniBrowserEndpointHandler
[]
Returns
MiniBrowserEndpointHandler
[]
Protected
get
Uri
get
Uri
(
request
:
Request
<
ParamsDictionary
,
any
,
any
,
ParsedQs
,
Record
<
string
,
any
>
>
)
:
MaybePromise
<
string
>
Parameters
request:
Request
<
ParamsDictionary
,
any
,
any
,
ParsedQs
,
Record
<
string
,
any
>
>
Returns
MaybePromise
<
string
>
Protected
get
Virtual
Host
Reg
Exp
get
Virtual
Host
Reg
Exp
(
)
:
Promise
<
RegExp
>
Returns
Promise
<
RegExp
>
Protected
missing
Resource
Handler
missing
Resource
Handler
(
)
:
(
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
>
>
>
on
Start
on
Start
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Protected
read
Content
read
Content
(
uri
:
string
)
:
Promise
<
FileStatWithContent
>
Parameters
uri:
string
Returns
Promise
<
FileStatWithContent
>
Protected
response
response
(
uri
:
string
, response
:
Response
<
any
,
Record
<
string
,
any
>
>
)
:
Promise
<
Response
<
any
,
Record
<
string
,
any
>
>
>
Parameters
uri:
string
response:
Response
<
any
,
Record
<
string
,
any
>
>
Returns
Promise
<
Response
<
any
,
Record
<
string
,
any
>
>
>
supported
File
Extensions
supported
File
Extensions
(
)
:
Promise
<
Readonly
<
{
extension
:
string
;
priority
:
number
}
>
[]
>
Returns
Promise
<
Readonly
<
{
extension
:
string
;
priority
:
number
}
>
[]
>
Exports
mini-
browser
Mini
Browser
Commands
Mini
Browser
Content
Style
Mini
Browser
Endpoint
Mini
Browser
Props
Mini
Browser
Endpoint
constructor
attach
Request
Handler
Promise
contributions
handlers
logger
HANDLE_
PATH
attach
Request
Handler
configure
default
Handler
error
Handler
get
Contributions
get
Uri
get
Virtual
Host
Reg
Exp
missing
Resource
Handler
on
Start
read
Content
response
supported
File
Extensions
Endpoint path to handle the request for the given resource.
since 1.8.0