Re:Strata Web Framework
by mjijackson on Wednesday September 21, 2011 @03:25PM
(#3023314)
Even so, this breaks down with JSGI middleware that depends on running in a Java environment. For example, JSGI's gzip middleware uses Java's byte buffers.
Which JSGI gzip middleware are you referring to? It should use portable CommonJS Binary objects, which in Common Node's case wraps Buffers and in RingoJS (Java) byte arrays.
Re:Strata Web Framework
by tlrobinson on Wednesday September 21, 2011 @03:38PM
(#3023358)
JSGI is an API, not an implementation. Nothing in the API is dependent on Java.
In fact, by connecting an input stream to an output stream (forEachable objects), the underlying code automatically enables Node's pipe like behavior.
Check out this example: https://github.com/olegp/common-node/blob/master/examples/ht...