Hi, is there a way to get the response status code (eg, 200 or 401) of request once you have done request.load()
? i cant find any documentation on the return value of request.load()
and when i log it (see below) i just get an empty dict
let request = new Request("https://www.example.net/");
request.method = "post";
request.addParameterToMultipart("key", "test") ;
request.addParameterToMultipart("data", "111");
let response = await request.load();
consol.log(response); // prints "{}"
EDIT: the server it is accessing is one i am hosting so i can see in the logs that it is sending a response. when i do loadString i get the string the server is sending printed but still no way to access the status code