This commit is contained in:
Redkale
2020-06-19 13:56:46 +08:00
parent 93b2b5fab8
commit 44ed3259f9

View File

@@ -83,6 +83,16 @@ public class HttpSimpleRequest implements java.io.Serializable {
return this;
}
public HttpSimpleRequest removeHeader(String name) {
if (this.headers != null) this.headers.remove(name);
return this;
}
public HttpSimpleRequest removeParam(String name) {
if (this.params != null) this.params.remove(name);
return this;
}
public HttpSimpleRequest headers(Map<String, String> headers) {
this.headers = headers;
return this;