REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.40 KB
Close
//usr/lib/node_modules/npm/node_modules/node-fetch-npm/src/response.js
Text
Base64
'use strict' /** * response.js * * Response class provides content decoding */ const STATUS_CODES = require('http').STATUS_CODES const Headers = require('./headers.js') const Body = require('./body.js') const clone = Body.clone /** * Response class * * @param Stream body Readable stream * @param Object opts Response options * @return Void */ class Response { constructor (body, opts) { if (!opts) opts = {} Body.call(this, body, opts) this.url = opts.url this.status = opts.status || 200 this.statusText = opts.statusText || STATUS_CODES[this.status] this.headers = new Headers(opts.headers) Object.defineProperty(this, Symbol.toStringTag, { value: 'Response', writable: false, enumerable: false, configurable: true }) } /** * Convenience property representing if the request ended normally */ get ok () { return this.status >= 200 && this.status < 300 } /** * Clone this response * * @return Response */ clone () { return new Response(clone(this), { url: this.url, status: this.status, statusText: this.statusText, headers: this.headers, ok: this.ok }) } } Body.mixIn(Response.prototype) Object.defineProperty(Response.prototype, Symbol.toStringTag, { value: 'ResponsePrototype', writable: false, enumerable: false, configurable: true }) module.exports = Response
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 8
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
blob.js
2.75 KB
lrw-r--r--
2021-03-10 14:36:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
body.js
9.55 KB
lrw-r--r--
2021-03-10 14:36:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
common.js
3.07 KB
lrw-r--r--
2021-03-10 14:36:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
fetch-error.js
886 B
lrw-r--r--
2021-03-10 14:36:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
headers.js
6.41 KB
lrw-r--r--
2021-03-10 14:36:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js
6.75 KB
lrw-r--r--
2021-03-10 14:36:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
request.js
4.47 KB
lrw-r--r--
2021-03-10 14:36:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
response.js
1.40 KB
lrw-r--r--
2021-03-10 14:36:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).