Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript get response payload

try {
  const response = await fetch(url, {
          method: "PUT",
        });

   if (response.ok) {
     const data = await response.text();
   }
} catch (e) {
 console.log(e) 
}
 
PREVIOUS NEXT
Tagged: #javascript #response #payload
ADD COMMENT
Topic
Name
1+5 =