flatiron/union — pull request #32 by pkrefta (2012-07-02 19:40:39+00:00)
Title: [api]SPDY support via node-spdy

@indutny's node-spdy module is compatible with standard http/https interface so implementation was fairly simple and required changes only in core.createServer method. Because SPDY requires SSL we need to pass the same parameters as we pass into https but with a different option key - spdy instead of https. If client's browser doesn't support SPDY it will nicely degrade to https.
I didn't write any tests because I don't know any standard method to detect SPDY on server - if necessary I can add some additional header to response and write a simple test.