(bodyInit, options)
| 7877 | Body.call(Request.prototype) |
| 7878 | |
| 7879 | function Response(bodyInit, options) { |
| 7880 | if (!options) { |
| 7881 | options = {} |
| 7882 | } |
| 7883 | |
| 7884 | this.type = 'default' |
| 7885 | this.status = 'status' in options ? options.status : 200 |
| 7886 | this.ok = this.status >= 200 && this.status < 300 |
| 7887 | this.statusText = 'statusText' in options ? options.statusText : 'OK' |
| 7888 | this.headers = new Headers(options.headers) |
| 7889 | this.url = options.url || '' |
| 7890 | this._initBody(bodyInit) |
| 7891 | } |
| 7892 | |
| 7893 | Body.call(Response.prototype) |
| 7894 |
nothing calls this directly
no outgoing calls
no test coverage detected