Удалите запрос
Используйте метод DELETE, чтобы удалить запрос на сервере. Если запрос был удален, информация об этом не может быть получена.
DELETE
http://host:port/{request-uri-string}
204 No Content
404 RequestNotFound
409 RequestNotCompleted — Запрос не достиг терминального состояния.
410 RequestAlreadyDeleted
500 InternalServerError
Запрос: DELETE /~f76280c5-b94c-4cd9-8eb6-841532788583/requests/31577b58-209c-4c41-b3f8-6e1e025f9c9b HTTP/1.1 Host: localhost:9910 Ответ: Status Code: 204 No Content |
var data = null;
var xhr = new XMLHttpRequest();
xhr.addEventListener("readystatechange", function () {
if (this.readyState === 4) {
console.log(this.responseText);
}
});
xhr.open("DELETE", "http://localhost:9910/~f76280c5-b94c-4cd9-8eb6-841532788583/requests/31577b58-209c-4c41-b3f8-6e1e025f9c9b");
xhr.send(data); |