Closed alex3683 closed 6 years ago
Implemented on master
(v0.9.0
).
The del
method (or its alias version delete
) now supports a data
for the request body as second argument. This shifts the options
argument from position two to three in the arguments list. Hence, if only options
and no data
should be passed to del
, simple use undefined
as second argument:
hal.del( theUrl, undefined, myOptions );
Currently the methods
get()
,head()
anddel(ete)()
do not support a request body. While this is okay for HTTPGET
andHEAD
requests, aDELETE
request can carry a meaningful body. For example we currently have a use case, where the deletion of a resource should be accompanied by a comment from the person deleting it. This change will be breaking, as theoptions
argument will get shifted.