[Seaside] returning a response in seaside 2.9
muthu kutti
muthu.kc at gmail.com
Wed May 20 13:00:00 UTC 2009
On Wed, May 20, 2009 at 5:58 PM, Lukas Renggli <renggli at gmail.com> wrote:
> In Seaside 2.9 the response object is created at the beginning of the
> request processing by the server adaptor. This has various advantages,
> among others it avoids unnecessary copying of the response body,
> allows streaming and prevents the need of unnecessary redirects when
> adding cookies.
>
> The response object (similar to the request, session, application,
> etc.) can be accessed through the the current request context. The
> following example would respond with a text file:
>
> self requestContext response
> contentType: WAMimeType textPlain;
> nextPutAll: 'Hello World';
> respond
>
> Thanks for the explanation and the snippet. It is working now.
>
Muthu
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20090520/b7b6c0fd/attachment.htm
More information about the seaside
mailing list