1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-17 08:42:25 +03:00

adds optional request body for DELETE requests to ammend #610

This commit is contained in:
Atticus White
2015-01-12 19:50:08 -05:00
parent 6910936dd3
commit e97bb77a0e

View File

@@ -209,6 +209,10 @@ public final class Request {
return method("POST", body);
}
public Builder delete(RequestBody body) {
return method("DELETE", body);
}
public Builder delete() {
return method("DELETE", null);
}