Skip to content

Commit

Permalink
adds optional request body for DELETE requests to ammend square#610
Browse files Browse the repository at this point in the history
  • Loading branch information
atticoos committed Jan 13, 2015
1 parent 6910936 commit e97bb77
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions okhttp/src/main/java/com/squareup/okhttp/Request.java
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ public Builder post(RequestBody body) {
return method("POST", body);
}

public Builder delete(RequestBody body) {
return method("DELETE", body);
}

public Builder delete() {
return method("DELETE", null);
}
Expand Down

0 comments on commit e97bb77

Please sign in to comment.