MCPcopy Create free account
hub / github.com/nodejs/node / [kInspect]

Method [kInspect]

lib/internal/http2/core.js:2139–2152  ·  view source on GitHub ↗
(depth, opts)

Source from the content-addressed store, hash-verified

2137 }
2138
2139 [kInspect](depth, opts) {
2140 if (typeof depth === 'number' && depth < 0)
2141 return this;
2142
2143 const obj = {
2144 id: this[kID] || '<pending>',
2145 closed: this.closed,
2146 destroyed: this.destroyed,
2147 state: this.state,
2148 readableState: this._readableState,
2149 writableState: this._writableState,
2150 };
2151 return `Http2Stream ${format(obj)}`;
2152 }
2153
2154 get bufferSize() {
2155 // `bufferSize` properties of `net.Socket` are `undefined` when

Callers

nothing calls this directly

Calls 1

formatFunction · 0.50

Tested by

no test coverage detected