@lynx-js/lynxtron / Protocol
Protocol
方法
handle()
Register a resource handler for a URL scheme such as app.
Returning false or undefined falls back to the normal Lynx resource
loading path. Return a Promise when the response data is produced
asynchronously.
参数
返回
void
定义于
isProtocolHandled()
Whether a handler is registered for scheme.
参数
返回
boolean
定义于
setRequestRewriter()
Rewrite a resource request URL before protocol handlers and fallback
loaders run. Pass null or undefined to clear the current rewriter.
参数
返回
void
定义于
unhandle()
Remove the handler registered for scheme.
参数
返回
void
定义于