Closed Bug 790044 Opened 12 years ago Closed 11 years ago

Add a way to make a DELETE call on the request API

Categories

(Add-on SDK Graveyard :: General, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 643156

People

(Reporter: peregrino, Unassigned)

Details

It's possible to make POST, GET, and PUT requests with the request API, but not DELETE.
No HEAD of TRACE either presumably. It might make sense to just have a request(type) method to cover all the other less-used methods.
You mean additionally to adding a .delete() method or just use this request(type) for DELETE and all the rest?
(In reply to Hernán Rodriguez Colmeiro (:peregrino) from comment #2)
> You mean additionally to adding a .delete() method or just use this
> request(type) for DELETE and all the rest?

The latter would be my suggestion, I'd probably prefer to use that for PUT too but since it already exists there isn't much point in breaking it now.
Bug 643156 has a patch to add DELETE.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.