[Seaside] GZIP siaside.

Julian Fitzell jfitzell at gmail.com
Wed Sep 24 09:33:49 UTC 2008


On Sat, Sep 20, 2008 at 5:18 PM, agnaldo4j <agnaldo4j at gmail.com> wrote:
> Julian Fitzell escreveu:
>
> On Sat, Sep 20, 2008 at 3:25 PM, Philippe Marschall
> <philippe.marschall at gmail.com> wrote:
>
>
> 2008/9/19 agnaldo4j <agnaldo4j at gmail.com>:
>
>
> Sorry, my english is very limited.
>
> I use seaside with squeak 3.9.
> I have a desktop application developed in java, this desktop application
> send a gzip stream to server(seaside) and receive from the server a gzip
> stream.
>
>
> This doesn't sound very Seaside specific. Seaside only works over
> http(s), it's a web framework. It looks more like you need a generic
> Squeak/Smalltalk server.
>
>
> I'm not certain but is the question just about using GZIP content
> compression for the HTTP stream?
>
> Correct Julian, is this.
> My request and response are in gzip mode, but in seside i don't undarstand
> how todo this.
> A example in Ruby on Rails:
> class TesteController < ApplicationController
>   protect_from_forgery :except => [:teste]
>
>   require 'zlib'
>
>   def teste
>     gz = Zlib::GzipReader.new(request.body)
>     puts gz.read
>
>     render :json => {:nome => "Agnaldo de Oliveira"}.to_json
>
>     StringIO.open('', 'w') do |strio|
>       gw = Zlib::GzipWriter.new(strio)
>       gw.write(response.body)
>       response.body = strio.string
>       gw.close()
>     end
>   end
> end

I'm not certain but I imagine you could configure Apache to do this in
front of Seaside. Maybe Comanche or Swazoo even support it? I'm not
sure... maybe somebody else on the list knows.

Julian


More information about the seaside mailing list