Hi Jeffm, 

Here is the link to controller return-tuples doc: 
http://wiki.erlang-web.org/Eptic/ServerTuples.

There is one called {custom, Val} and using it lets you return anything 
accepted by the server (Val will go directly to HTTP server).

However, once I migrated old system (written in yaws) to ErlangWeb, and there 
was already yaws module for streaming, so I simply check authorization and set 
a session on ErlangWeb side and then redirected to yaws module (to do it you 
need also another appmod defined for this module). 



----- "Jeffm" <je...@ghostgun.com> wrote:

> Is it possible to stream data from, or to trigger streaming from a 
> controller model in erlang-web? The motivation behind this is that in
> a 
> test project I'm playing around with I have large (static) files which
> 
> should only be accessible once you authenticate as a user which is 
> allowed access to these files. Standard stuff really. Copying these 
> large files into memory in one block to send to the browser is
> wasteful 
> of memory. A quick inspection of the doco for both inets and yaws says
> 
> that they support this feature, but I can't find the doco on the
> allowed 
> return values for the controller modules. If I've missed it please
> point 
> me to  it.
> 
> Jeff.
> 
> 
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Erlangweb-users mailing list
> Erlangweb-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/erlangweb-users
> http://www.erlang-web.org/

-- 
Michal Zajda

Erlang Solutions Ltd.
http://www.erlang-solutions.com
---------------------------------------------------

---------------------------------------------------

WE'VE CHANGED NAMES!

Since January 1st 2010 Erlang Training and Consulting Ltd. has become ERLANG 
SOLUTIONS LTD.

www.erlang-solutions.com


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Erlangweb-users mailing list
Erlangweb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlangweb-users
http://www.erlang-web.org/

Reply via email to