Commit a7e30907 authored by 王侃's avatar 王侃 Committed by GitHub

setBinaryContent, setCharset 方法返回this, 方便链式调用

parent 6f5b9e44
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment