(depth, opts)
| 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 |