()
| 12003 | } |
| 12004 | // Returns a clone of response. |
| 12005 | clone() { |
| 12006 | webidl.brandCheck(this, _Response); |
| 12007 | if (bodyUnusable(this)) { |
| 12008 | throw webidl.errors.exception({ |
| 12009 | header: "Response.clone", |
| 12010 | message: "Body has already been consumed." |
| 12011 | }); |
| 12012 | } |
| 12013 | const clonedResponse = cloneResponse(this[kState]); |
| 12014 | return fromInnerResponse2(clonedResponse, getHeadersGuard(this[kHeaders])); |
| 12015 | } |
| 12016 | [nodeUtil.inspect.custom](depth, options) { |
| 12017 | if (options.depth === null) { |
| 12018 | options.depth = 2; |
no test coverage detected