Object sent to this function (req) and other info (serverConf, rampart, process):
{
"req": {
"printf": {
"_c_func": true
},
"put": {
"_c_func": true
},
"getpos": {
"_c_func": true
},
"rewind": {
"_c_func": true
},
"getBuffer": {
"_c_func": true
},
"getMime": {
"_c_func": true
},
"ip": "216.73.216.5",
"port": 54691,
"method": "GET",
"methodRaw": "GET",
"path": {
"file": "hlshowreq.html",
"path": "/apps/test_modules/hlshowreq.html",
"base": "/apps/test_modules/",
"scheme": "https://",
"host": "adev.flin.org",
"url": "https://adev.flin.org/apps/test_modules/hlshowreq.html"
},
"query": {},
"query_raw": "",
"cookies": {},
"postData": {
"Content-Type": ""
},
"headers": {
"accept": "*/*",
"user-agent": "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)",
"accept-encoding": "gzip, br, zstd, deflate",
"host": "adev.flin.org"
},
"params": {
"accept": "*/*",
"user-agent": "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)",
"accept-encoding": "gzip, br, zstd, deflate",
"host": "adev.flin.org"
},
"body": {}
},
"serverConf": {
"ipAddr": "127.0.0.1",
"ipv6Addr": "[::1]",
"bindAll": true,
"ipPort": 443,
"ipv6Port": 443,
"port": 443,
"redirPort": 80,
"redir": true,
"redirTemp": false,
"htmlRoot": "/home/aaron/web_server/html",
"appsRoot": "/home/aaron/web_server/apps",
"wsappsRoot": "/home/aaron/web_server/wsapps",
"dataRoot": "/home/aaron/web_server/data",
"logRoot": "/home/aaron/web_server/logs",
"accessLog": "/home/aaron/web_server/logs/access.log",
"errorLog": "/home/aaron/web_server/logs/error.log",
"log": true,
"rotateLogs": false,
"rotateInterval": 86400,
"rotateStart": "00:00",
"user": "aaron",
"threads": -1,
"sslKeyFile": "/etc/letsencrypt/live/adev.flin.org/privkey.pem",
"sslCertFile": "/etc/letsencrypt/live/adev.flin.org/fullchain.pem",
"secure": true,
"developerMode": true,
"letsencrypt": "adev.flin.org",
"rootScripts": false,
"directoryFunc": false,
"monitor": false,
"daemon": true,
"scriptTimeout": 20,
"connectTimeout": 20,
"quickserver": false,
"appendProcTitle": false,
"beginFunc": false,
"beginFuncOnFile": false,
"endFunc": false,
"irohProxy": false,
"serverRoot": "/home/aaron/web_server",
"appendMap": {
"/dav/": {
"module": "/home/aaron/web_server/apps/webdav/webdav.js"
}
},
"maxBodySize": 52428800,
"bind": [
"0.0.0.0:443",
"[::]:443"
],
"fullServer": 1,
"launchServer": true,
"launchMonitor": false,
"launchRedir": true,
"notFoundFunc": {
"_c_func": true,
"fname": "notFoundFunc",
"func": "function () { [ecmascript code] }"
},
"mimeMap": {
"mp3": "audio/mp3"
},
"map": {
"/": "/home/aaron/web_server/html",
"/apps/": {
"modulePath": "/home/aaron/web_server/apps"
},
"ws://wsapps/": {
"modulePath": "/home/aaron/web_server/wsapps"
},
"/dav/": {
"_cyclic_ref": "$.serverConf.appendMap./dav/"
}
}
},
"rampart": {
"utils": {
"wordReplace": {
"_c_func": true
},
"deepCopy": {
"_c_func": true
},
"toJsonSafe": {
"_c_func": true
},
"printf": {
"_c_func": true
},
"sprintf": {
"_c_func": true
},
"fprintf": {
"_c_func": true
},
"bprintf": {
"_c_func": true
},
"abprintf": {
"_c_func": true
},
"fopen": {
"_c_func": true
},
"fopenBuffer": {
"_c_func": true
},
"forkpty": {
"_c_func": true
},
"fork": {
"_c_func": true
},
"daemon": {
"_c_func": true
},
"newPipe": {
"_c_func": true
},
"fclose": {
"_c_func": true
},
"fflush": {
"_c_func": true
},
"fseek": {
"_c_func": true
},
"ftell": {
"_c_func": true
},
"rewind": {
"_c_func": true
},
"fread": {
"_c_func": true
},
"fgets": {
"_c_func": true
},
"getchar": {
"_c_func": true
},
"repl": {
"_c_func": true,
"refresh": "function () { [native code] }"
},
"fwrite": {
"_c_func": true
},
"getType": {
"_c_func": true
},
"dateFmt": {
"_c_func": true
},
"scanDate": {
"_c_func": true
},
"autoScanDate": {
"_c_func": true
},
"timezone": {
"_c_func": true
},
"accessLog": {
"stream": "accessLog",
"fprintf": {
"_c_func": true
},
"fflush": {
"_c_func": true
},
"fwrite": {
"_c_func": true
}
},
"errorLog": {
"stream": "errorLog",
"fprintf": {
"_c_func": true
},
"fflush": {
"_c_func": true
},
"fwrite": {
"_c_func": true
}
},
"stdout": {
"stream": "stdout",
"fprintf": {
"_c_func": true
},
"fflush": {
"_c_func": true
},
"fwrite": {
"_c_func": true
}
},
"stderr": {
"stream": "stderr",
"fprintf": {
"_c_func": true
},
"fflush": {
"_c_func": true
},
"fwrite": {
"_c_func": true
}
},
"stdin": {
"stream": "stdin",
"fread": {
"_c_func": true
},
"readLine": {
"_c_func": true
},
"fgets": {
"_c_func": true
},
"getchar": {
"_c_func": true
}
},
"errorConfig": {
"_c_func": true
},
"eventCallback": {
"_c_func": true
},
"use": {},
"load": {},
"hll": {
"_c_func": true,
"prototype": "[object Object]"
},
"srand": {
"_c_func": true
},
"rand": {
"_c_func": true
},
"irand": {
"_c_func": true
},
"gaussrand": {
"_c_func": true
},
"normrand": {
"_c_func": true
},
"hash": {
"_c_func": true
},
"hashFile": {
"_c_func": true
},
"hexify": {
"_c_func": true
},
"dehexify": {
"_c_func": true
},
"stringToBuffer": {
"_c_func": true
},
"bufferToString": {
"_c_func": true
},
"objectToQuery": {
"_c_func": true
},
"queryToObject": {
"_c_func": true
},
"readFile": {
"_c_func": true
},
"readLine": {
"_c_func": true
},
"stat": {
"_c_func": true
},
"lstat": {
"_c_func": true
},
"trim": {
"_c_func": true
},
"execRaw": {
"_c_func": true
},
"exec": {
"_c_func": true
},
"shell": {
"_c_func": true
},
"kill": {
"_c_func": true
},
"mkdir": {
"_c_func": true
},
"mkDir": {
"_c_func": true
},
"rmdir": {
"_c_func": true
},
"rmDir": {
"_c_func": true
},
"chdir": {
"_c_func": true
},
"chDir": {
"_c_func": true
},
"getcwd": {
"_c_func": true
},
"getCwd": {
"_c_func": true
},
"readdir": {
"_c_func": true
},
"readDir": {
"_c_func": true
},
"copyFile": {
"_c_func": true
},
"realPath": {
"_c_func": true
},
"rmFile": {
"_c_func": true
},
"link": {
"_c_func": true
},
"symlink": {
"_c_func": true
},
"chmod": {
"_c_func": true
},
"touch": {
"_c_func": true
},
"rename": {
"_c_func": true
},
"chown": {
"_c_func": true
},
"sleep": {
"_c_func": true
},
"stringToNumber": {
"_c_func": true
}
},
"globalize": {
"_c_func": true
},
"include": {
"_c_func": true
},
"import": {
"csvFile": {
"_c_func": true
},
"csv": {
"_c_func": true
}
},
"event": {
"scopeToModule": {
"_c_func": true
},
"on": {
"_c_func": true
},
"off": {
"_c_func": true
},
"remove": {
"_c_func": true
},
"trigger": {
"_c_func": true
}
},
"thread": {
"_c_func": true,
"getCurrentId": "function () { [native code] }",
"put": "function () { [native code] }",
"get": "function () { [native code] }",
"waitfor": "function () { [native code] }",
"onGet": "function () { [native code] }",
"getwait": "function () { [native code] }",
"del": "function () { [native code] }"
},
"lock": {
"_c_func": true
},
"vector": {
"_c_func": true,
"raw": "[object Object]"
},
"buildPlatform": "Linux ip-172-26-1-201.us-west-2.compute.internal 6.1.102-108.177.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 10:18:50 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux",
"buildCC": "/usr/bin/cc",
"versionBuild": "0.6.1_64bit+2026-03-09T19:23:39Z",
"version": "0.6.1",
"versionNumber": 601,
"versionDate": "2026-03-09T19:23:39.000Z",
"versionBits": 64,
"thread_id": 1
},
"process": {
"env": {
"HOSTNAME": "ip-172-26-1-201.us-west-2.compute.internal",
"HISTSIZE": "1000",
"LANG": "C.UTF-8",
"LS_COLORS": "rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.m4a=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.oga=01;36:*.opus=01;36:*.spx=01;36:*.xspf=01;36:",
"TERM": "screen.xterm-256color",
"MAIL": "/var/spool/mail/aaron",
"PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/var/lib/snapd/snap/bin",
"LOGNAME": "root",
"USER": "root",
"HOME": "/root",
"SHELL": "/bin/bash",
"SUDO_COMMAND": "/usr/local/bin/rampart web_server_conf.js restart",
"SUDO_USER": "aaron",
"SUDO_UID": "1001",
"SUDO_GID": "1001"
},
"getTotalMem": {
"_c_func": true
},
"setMaxMem": {
"_c_func": true
},
"exit": {
"_c_func": true
},
"getpid": {
"_c_func": true
},
"getppid": {
"_c_func": true
},
"setProcTitle": {
"_c_func": true
},
"argv": [
"rampart /home/aaron/web_server/web_server_conf.js",
"web_server_conf.js",
"restart"
],
"argv0": "rampart /home/aaron/web_server/web_server_conf.js",
"scriptPath": "/home/aaron/web_server",
"script": "/home/aaron/web_server/web_server_conf.js",
"scriptName": "web_server_conf.js",
"installPath": "/usr/local/rampart",
"installPathBin": "/usr/local/rampart/bin",
"installPathExec": "/usr/local/rampart/bin/rampart",
"modulesPath": "/usr/local/rampart/modules"
}
}