MCPcopy Create free account
hub / github.com/expressjs/compression / pressure

Function pressure

test/compression.js:200–216  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

198 })
199
200 function pressure () {
201 if (!buf || !resp || !client) return
202
203 assert.ok(!drained)
204
205 while (resp.write(buf) !== false) {
206 resp.flush()
207 }
208
209 resp.on('drain', function () {
210 assert.ok(resp.write('end'))
211 resp.end()
212 })
213
214 resp.on('finish', cb)
215 client.resume()
216 }
217
218 request(server)
219 .get('/')

Callers 1

compression.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected