Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/sites/node_modules/@aws-sdk/protocol-http/dist-es/ drwxr-xr-x | |
| Viewing file: Select action/file-type: import { __assign, __read, __spreadArray } from "tslib";
var HttpRequest = (function () {
function HttpRequest(options) {
this.method = options.method || "GET";
this.hostname = options.hostname || "localhost";
this.port = options.port;
this.query = options.query || {};
this.headers = options.headers || {};
this.body = options.body;
this.protocol = options.protocol
? options.protocol.slice(-1) !== ":"
? "".concat(options.protocol, ":")
: options.protocol
: "https:";
this.path = options.path ? (options.path.charAt(0) !== "/" ? "/".concat(options.path) : options.path) : "/";
}
HttpRequest.isInstance = function (request) {
if (!request)
return false;
var req = request;
return ("method" in req &&
"protocol" in req &&
"hostname" in req &&
"path" in req &&
typeof req["query"] === "object" &&
typeof req["headers"] === "object");
};
HttpRequest.prototype.clone = function () {
var cloned = new HttpRequest(__assign(__assign({}, this), { headers: __assign({}, this.headers) }));
if (cloned.query)
cloned.query = cloneQuery(cloned.query);
return cloned;
};
return HttpRequest;
}());
export { HttpRequest };
function cloneQuery(query) {
return Object.keys(query).reduce(function (carry, paramName) {
var _a;
var param = query[paramName];
return __assign(__assign({}, carry), (_a = {}, _a[paramName] = Array.isArray(param) ? __spreadArray([], __read(param), false) : param, _a));
}, {});
}
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0102 ]-- |