<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 17, 2015 at 11:06 PM, Sébastien Blanc <span dir="ltr">&lt;<a href="mailto:scm.blanc@gmail.com" target="_blank">scm.blanc@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>Hi !</div><div>I just wanted to share that interesting post from the Cordova dev list. It shows how to delegate XMLHttpRequest and image loading to a native implementation.</div><div><br></div><div>Would we provide any advantage by using our iOS http lib and android Pipes over plain <span style="background-color:rgba(255,255,255,0)">XMLHttpRequest ? </span></div></div></blockquote><div><br></div><div>Not sure I am really following your thoughts, but isn&#39;t that what we are already doing inside e.g. the push plugin? the actual HTTP stack is part of our native libs, instead of XHR</div><div><br></div><div>-Matthias</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div><span style="background-color:rgba(255,255,255,0)"><br></span></div><div>Also check the reply where another one have used the same approach to add certificate pinning , that could be an interesting source of inspiration since I know cert pinning is on the security roadmap [1]</div><div><br></div><div>Sébi</div><div>[1] <a href="https://issues.jboss.org/browse/AGSEC-196" target="_blank">https://issues.jboss.org/browse/AGSEC-196</a><br><br>Envoyé de mon iPhone</div><div><br>Début du message transféré :<br><br></div><blockquote type="cite"><div><b>Expéditeur:</b> Brien Colwell &lt;<a href="mailto:brien@nextop.io" target="_blank">brien@nextop.io</a>&gt;<br><b>Date:</b> 17 février 2015 11:42:48 UTC+1<br><b>Destinataire:</b> <a href="mailto:dev@cordova.apache.org" target="_blank">dev@cordova.apache.org</a><br><b>Objet:</b> <b>I replaced XMLHttpRequest and image loading with a plugin, and wrote up my experiences</b><br><b>Répondre à:</b> <a href="mailto:dev@cordova.apache.org" target="_blank">dev@cordova.apache.org</a><br><br></div></blockquote><div><div class="h5"><blockquote type="cite"><div><span>Hi All,</span><br><span></span><br><span>I spent some time researching how much of the webview network stack I could replace with a Cordova plugin on Android. I wrote a post about it -</span><br><span></span><br><span><a href="https://github.com/nextopio/nextop-client/blob/master/docs/02.16.2015_CUSTOM_XMLHTTPREQUEST.md" target="_blank">https://github.com/nextopio/nextop-client/blob/master/docs/02.16.2015_CUSTOM_XMLHTTPREQUEST.md</a></span><br><span></span><br><span>The take away is that a Cordova can fully replacing the default XHR and image loading in the webview for async=true, but it can&#39;t do async=false (but who uses that anyway :/). This is cool because plugins can experiment with new wire protocols to get data to the client.</span><br><span></span><br><span>Best,</span><br><span>Brien</span><br><span></span><br><span></span><br><span>---------------------------------------------------------------------</span><br><span>To unsubscribe, e-mail: <a href="mailto:dev-unsubscribe@cordova.apache.org" target="_blank">dev-unsubscribe@cordova.apache.org</a></span><br><span>For additional commands, e-mail: <a href="mailto:dev-help@cordova.apache.org" target="_blank">dev-help@cordova.apache.org</a></span><br><span></span><br></div></blockquote></div></div></div><br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Matthias Wessendorf <br><br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a></div>
</div></div>