[
https://issues.apache.org/jira/browse/CB-8702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14367258#comment-14367258
]
ASF subversion and git services commented on CB-8702:
-----------------------------------------------------
Commit 8d5cb00bec3f3cac28ed9a30cba2fedac7a0a317 in cordova-android's branch
refs/heads/master from [~agrieve]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-android.git;h=8d5cb00 ]
CB-8702 Add API for plugins to override `shouldInterceptRequest` with a stream
> Plugins should be able to override shouldInterceptRequest()
> -----------------------------------------------------------
>
> Key: CB-8702
> URL: https://issues.apache.org/jira/browse/CB-8702
> Project: Apache Cordova
> Issue Type: Improvement
> Components: Android
> Reporter: Andrew Grieve
> Assignee: Andrew Grieve
> Priority: Minor
>
> Right now plugins can alter the result of {code}shouldInterceptRequest{code}
> via {code}remapUri{code}, but it would be nicer if they could actually return
> an {code}InputStream{code}.
> Propose new API to be:
> 1. remapUri() to a "cdvplugin://PluginId" URI
> 2. add a handleOpenForRead() for dealing with these URIs
> This way plugins can return streams not just for
> {code}shouldInterceptRequest{code}, but for all
> {code}CordovaResourceApi{code} usages.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]