A SPDY Push helper to be used with spdy.
closeevents and file descriptor leaks
- Automatically gzips
- Automatically sets the
content-typeheaders if it can
- Supports pushing strings, buffers, streams, and files
var spdy = ;
spdy(res).push([path], [options], [priority]).then( => )
pathis the path of the object being pushed. Can also be set as
priorityis the priority between
0-7of the push stream with
7, the default, being the lowest priority. Can also be set as
filename- a path to a file. Resolves against CWD.
options.filename must be set.
You do not need to set the following headers:
.then( => )
Waits until the entire stream has been flushed.