Reviewers: dev-remailer_shindig.apache.org,

Description:
Adds the ability to request, via &output=js, proxied content in dataUri
form.

In the presence of this parameter, a JSON object is emitted containing a
'dataUri' field w/ the URI contents, as well as any metadata that is
associated w/ the HttpResponse (allowing augmentation in various cases
such as image proxying, where height/width/etc. may be set).

This isn't particularly configurable as yet (ie. max size of response),
but seems to work just fine. A test page (added in this CL) demonstrates
this. We may also consider adding JSONP and CORS support.

Please review this at http://codereview.appspot.com/1696056/show

Affected files:
  content/container/datauri_proxy.html
java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/ProxyHandler.java java/gadgets/src/test/java/org/apache/shindig/gadgets/servlet/ProxyHandlerTest.java


Reply via email to