* @see https://fetch.spec.whatwg.org/#dom-body-body * @readonly * @returns {ReadableStream}
()
| 17230 | * @returns {ReadableStream} |
| 17231 | */ |
| 17232 | get body() { |
| 17233 | if (!this[kBody]) { |
| 17234 | this[kBody] = ReadableStreamFrom(this); |
| 17235 | if (this[kConsume]) { |
| 17236 | this[kBody].getReader(); |
| 17237 | assert(this[kBody].locked); |
| 17238 | } |
| 17239 | } |
| 17240 | return this[kBody]; |
| 17241 | } |
| 17242 | /** |
| 17243 | * Dumps the response body by reading `limit` number of bytes. |
| 17244 | * @param {object} opts |
no test coverage detected