How to send payload data using sitebricks web client using http delete method

207 Views Asked by At

I am using sitebricks http client to send http requests to a rest service. My question is how to send a payload data with delete ? post method accepts data as a parameter

WebClient<SubnetId> client = web().clientOf(deleteUser()).transports(User.class).over(Json.class);

//client.post(user) <-- this is OK ! 

client.delete(); // <-- delete does not accepts user !!!
1

There are 1 best solutions below

0
On

Ok guys, a good discussion raised in here which is somewhat the answer.