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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user