Skip to content
Snippets Groups Projects
Commit b77e4307 authored by rswindell's avatar rswindell
Browse files

Useful little diddy for dumping the web server's JS objects (http_request and

http_reply) for debugging/learning their use.
parent 46d452f6
No related branches found
No related tags found
No related merge requests found
// dumpobjs.ssjs
// $Id$
// Used for debugging (and possibly documenting) the Synchronet web server's JS objects
write("<html><body>");
function dump(obj, name)
{
var i;
for(i in obj) {
if(obj.length!=undefined)
write(name +'['+ i +'] = ');
else
write(name +'.'+ i +' = ');
write(obj[i] + "<br>");
if(typeof(obj[i])=="object")
dump(obj[i], name +'.'+ i);
}
}
dump(http_request,"http_request");
dump(http_reply,"http_reply");
write("</body></html>");
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment