CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-xmlhttprequest

XMLHttpRequest for Node.js that emulates the browser XMLHttpRequest object

Overall
score

75%

Overview
Eval results
Files

rubric.jsonevals/scenario-7/

{
  "context": "Assesses whether the solution uses the xmlhttprequest package to perform blocking HTTP calls for configuration bootstrap, including header handling and sequential synchronous execution without async fallbacks.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Imports client",
      "description": "Constructs requests using the package's XMLHttpRequest constructor from require('xmlhttprequest').XMLHttpRequest rather than alternative HTTP clients.",
      "max_score": 15
    },
    {
      "name": "Synchronous open",
      "description": "Invokes open with the third parameter set to false (or omitted in a way that defaults to false) to force the library's synchronous child-process backed request mode for each call.",
      "max_score": 30
    },
    {
      "name": "Header usage",
      "description": "Applies provided headers via setRequestHeader before send, relying on the package's header management rather than manual socket handling or ignored headers.",
      "max_score": 20
    },
    {
      "name": "Response reading",
      "description": "Reads status and responseText immediately after send completes (readyState DONE) to populate returned status/body or parsed data, instead of asynchronous event callbacks or other data sources.",
      "max_score": 20
    },
    {
      "name": "Ordered sync loop",
      "description": "Performs multiple calls by repeating the synchronous open/send flow sequentially (no Promises, callbacks, or async/await), ensuring later requests start only after the previous xmlhttprequest has finished.",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-xmlhttprequest

tile.json