Request Last updated: 28. Feb 2024

Get information about the current request from the request object.

Parameters

This function takes no parameters

Returns

An object with many properties with information about the current request.

Example

Code example (JS)

JS is normal JavaScript either running in the browser or on the Docly™ server.
var json = JSON.stringify(request);
var formatted = JSON.format(json).replace(chr(13), "");
write(formatted);

Output

The JS code above produces the output shown below:
{
  "filepath": "/JavaScript/Output functions/Request",
  "urlpath": "/JavaScript/Output-functions/Request",
  "fileId": "28BC4",
  "folderId": "B31E",
  "fileGuid": "TISeyyiBzE6XYO0A6Ukq4w",
  "folderGuid": "N7_jdBoRWk2PPT-_EU4QEg",
  "foldername": "Output functions",
  "folderpath": "/JavaScript/Output functions/",
  "opendoc": "https://docly.net/#DTISeyyiBzE6XYO0A6Ukq4w?backurl=https%3a%2f%2fdevelopers.docly.net%2fJavaScript%2fOutput-functions%2fRequest",
  "openfolder": "https://docly.net/#FN7_jdBoRWk2PPT-_EU4QEg",
  "sitefolder": "https://docly.net/#FTuZZ9eKfuU2aBqBzJEL5Aw",
  "sitename": "developers.docly.net",
  "sitepath": "/",
  "template": "",
  "title": "Request",
  "isIndex": false,
  "is404": false,
  "folderNotFound": false,
  "url": "/JavaScript/Output-functions/Request",
  "Url": "/JavaScript/Output-functions/Request",
  "rawurl": "/JavaScript/Output-functions/Request",
  "rawUrl": "/JavaScript/Output-functions/Request",
  "completeUrl": "https://developers.docly.net/JavaScript/Output-functions/Request",
  "encodedFileUrl": "https://developers.docly.net/JavaScript/Output-functions/Request",
  "siteUrl": "https://developers.docly.net/",
  "user": null,
  "Jwt": null,
  "filename": "Request"
}