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/wincloud_gateway/node_modules/request-compose/request/ drwxr-xr-x | |
| Viewing file: Select action/file-type:
var options = [
// https://nodejs.org/dist/latest-v14.x/docs/api/http.html#http_http_request_options_callback
'agent',
'auth',
'createConnection',
'defaultPort',
'family',
'headers',
'host',
'hostname',
'insecureHTTPParser',
'localAddress',
'lookup',
'maxHeaderSize',
'method',
'path',
'port',
'protocol',
'setHost',
'socketPath',
'timeout',
// https://nodejs.org/dist/latest-v14.x/docs/api/https.html#https_https_request_options_callback
'ca',
'cert',
'ciphers',
'clientCertEngine',
'crl',
'dhparam',
'ecdhCurve',
'honorCipherOrder',
'key',
'passphrase',
'pfx',
'rejectUnauthorized',
'secureOptions',
'secureProtocol',
'servername',
'sessionIdContext',
'highWaterMark',
]
module.exports = (_args = {}) => (args = _args) => {
var defaults = {
protocol: args.protocol || 'http:',
hostname: args.hostname || 'localhost',
port: args.port || 80,
method: (args.method || 'GET').toUpperCase(),
path: args.path || '/',
headers: args.headers ? JSON.parse(JSON.stringify(args.headers)) : {},
timeout: args.timeout || 5000,
}
return {
options: options.reduce((http, option) => (
defaults[option] !== undefined ? http[option] = defaults[option] :
args[option] !== undefined ? http[option] = args[option] :
null,
http
), {})
}
}
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0183 ]-- |