MCPcopy Create free account
hub / github.com/Code-Bullet/Jump-King / Response

Function Response

libraries/p5.js:7879–7891  ·  view source on GitHub ↗
(bodyInit, options)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected