Lines Matching refs:encoding
243 ServerResponse.prototype._writeBody = function(chunk, encoding, callback) { argument
253 } else if (typeof encoding === 'function') {
254 callback = encoding;
255 encoding = null;
267 contentLength = Buffer.byteLength(chunk, encoding);
270 chunk = Buffer.from(chunk, encoding);
280 o = new BufferedOutput(this, 0, chunk, encoding, callback);
291 o = new BufferedOutput(this, res, chunk, encoding, callback);
315 ServerResponse.prototype.write = function write(chunk, encoding, callback) { argument
317 if (typeof encoding === 'function') {
318 callback = encoding;
319 encoding = null;
332 return this._writeBody(chunk, encoding, callback);
337 ServerResponse.prototype.end = function end(chunk, encoding, callback) { argument
339 if (typeof encoding === 'function') {
340 callback = encoding;
341 encoding = null;
344 this._writeBody(chunk, encoding, () => {
518 l = Buffer.byteLength(o.chunk, o.encoding);
557 function BufferedOutput(resp, offset, chunk, encoding, callback) { argument
561 this.encoding = encoding;