()
| 5791 | type = object.type; |
| 5792 | } |
| 5793 | } else if (typeof object[Symbol.asyncIterator] === "function") { |
| 5794 | if (keepalive) { |
| 5795 | throw new TypeError("keepalive"); |
| 5796 | } |
| 5797 | if (util.isDisturbed(object) || object.locked) { |
| 5798 | throw new TypeError( |
| 5799 | "Response body object should not be disturbed or locked" |
| 5800 | ); |
| 5801 | } |
| 5802 | stream = object instanceof ReadableStream ? object : ReadableStreamFrom(object); |
| 5803 | } |
| 5804 | if (typeof source === "string" || util.isBuffer(source)) { |
| 5805 | length = Buffer.byteLength(source); |
| 5806 | } |
nothing calls this directly
no test coverage detected