On Sun, Jul 5, 2009 at 11:49 AM, Benoit Chesneau<[email protected]> wrote:
> 2009/7/5 Chris Anderson <[email protected]>:
>
>> This looks really cool. Can you give more examples of it at work? I'm
>> not sure I total understand. Looks powerful.
>>
>
>
> Main use for this is is proxying remote http services like an XMPP
> bosh connection, or any ajax service that don't do JSONP. Obviously
> couchapps will have some usage for this. Indeed, with this proxy, you
> could aggregate different services on your pages and use them without
> worrying about cross-domain problem.
>
> All you have to proxy a service is to set a local path and destination
> path like this :
>
> [httpd_global_handlers]
> _couchdb = {couch_httpd_proxy_handler, handle_proxy_req,
> <<"http://couchdb.apache.org";>>}
> _friendpaste = {couch_httpd_proxy_handler, handle_proxy_req,
> <<"http://friendpaste.com";>>}
>
>
> and now you could do use friendpaste api from your application. (which
> won't be needed soon, but that's another story).
>
>
> Right now the request body isn't streamed and I would like to have a
> way to send it whil receiving it. Maybe it's not possible but I failed
> for now to understand how mochiweb api works with it.
>

I've heard you can just connect the raw sockets together and it
works... not sure how that would look in practice.

> Hope it's more understandable now :)
>
> - benoƮt
>



-- 
Chris Anderson
http://jchrisa.net
http://couch.io

Reply via email to