[Seaside] returning a response in seaside 2.9

Lukas Renggli renggli at gmail.com
Wed May 20 12:28:41 UTC 2009

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';


Lukas Renggli

More information about the seaside mailing list