Lines Matching refs:util

11 const util = require('./core/util')
262 ...(util.nodeHasAutoSelectFamily && autoSelectFamily ? { autoSelectFamily, autoSelectFamilyAttemptTimeout } : undefined),
270 this[kUrl] = util.parseOrigin(url)
368 } else if (util.bodyLength(request.body) == null && util.isIterable(request.body)) {
413 util.destroy(this[kHTTP2Session], err)
421 util.destroy(this[kSocket].on('close', callback), err)
447 util.destroy(this, new SocketError('other side closed'))
448 util.destroy(this[kSocket], new SocketError('other side closed'))
708 util.destroy(socket, err)
782 util.destroy(this.socket, new HeadersOverflowError())
827 util.destroy(socket, err)
852 util.destroy(socket, new SocketError('bad response', util.getSocketInfo(socket)))
858 util.destroy(socket, new SocketError('bad upgrade', util.getSocketInfo(socket)))
900 const keepAliveTimeout = this.keepAlive ? util.parseKeepAliveTimeout(this.keepAlive) : null
963 util.destroy(socket, new ResponseExceededMaxSizeError())
1007 util.destroy(socket, new ResponseContentLengthMismatchError())
1018 util.destroy(socket, new InformationalError('reset'))
1021 util.destroy(socket, new InformationalError('reset'))
1028 util.destroy(socket, new InformationalError('reset'))
1048 util.destroy(socket, new HeadersTimeoutError())
1052 util.destroy(socket, new BodyTimeoutError())
1056 util.destroy(socket, new InformationalError('socket idle timeout'))
1118 util.destroy(this, new SocketError('other side closed', util.getSocketInfo(this)))
1134 const err = this[kError] || new SocketError('closed', util.getSocketInfo(this))
1216 util.destroy(socket.on('error', () => {}), new ClientDestroyedError())
1422 util.destroy(socket, new InformationalError('servername changed'))
1454 if (client[kRunning] > 0 && util.bodyLength(request.body) !== 0 &&
1455 (util.isStream(request.body) || util.isAsyncIterable(request.body))) {
1508 const bodyLength = util.bodyLength(body)
1546 util.destroy(socket, new InformationalError('aborted'))
1616 } else if (util.isBuffer(body)) {
1628 } else if (util.isBlobLike(body)) {
1634 } else if (util.isStream(body)) {
1636 } else if (util.isIterable(body)) {
1734 let contentLength = util.bodyLength(body)
1813 util.destroy(stream, err)
1823 util.destroy(stream, err)
1849 } else if (util.isBuffer(body)) {
1857 } else if (util.isBlobLike(body)) {
1881 } else if (util.isStream(body)) {
1892 } else if (util.isIterable(body)) {
1919 util.destroy(body, err)
1920 util.destroy(h2stream, err)
1930 util.destroy(pipe)
1954 util.destroy(this, err)
2003 util.destroy(body, err)
2005 util.destroy(body)
2055 util.destroy(isH2 ? h2stream : socket, err)
2269 util.destroy(socket, err)