0

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 !!!
Adelin
  • 18,144
  • 26
  • 115
  • 175

1 Answers1

0

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

Adelin
  • 18,144
  • 26
  • 115
  • 175