Merge pull request #638 from Wkan/patch-1

setBinaryContent, setCharset 方法返回this, 方便链式调用
master
Yihua Huang 2017-07-30 11:51:46 +08:00 committed by GitHub
commit 60b62ca12c
1 changed files with 4 additions and 2 deletions

View File

@ -174,16 +174,18 @@ public class Request implements Serializable {
return binaryContent;
}
public void setBinaryContent(boolean binaryContent) {
public Request setBinaryContent(boolean binaryContent) {
this.binaryContent = binaryContent;
return this;
}
public String getCharset() {
return charset;
}
public void setCharset(String charset) {
public Request setCharset(String charset) {
this.charset = charset;
return this;
}
@Override