Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Update A Request() Property

const oldRequest = new Request('/test',{method:"GET"});

	const newRequest = new Request(oldRequest,
{method:"POST"});

console.log(newRequest);
/*instead of method = "GET", newRequest has method="POST*/
 
PREVIOUS NEXT
Tagged: #Update #A #Property
ADD COMMENT
Topic
Name
8+9 =