feat: 重写toString方法
parent
2807c889d1
commit
baa10ede23
|
|
@ -63,4 +63,11 @@ public class HttpHeaders {
|
||||||
headers.addHeader(API_VERSION, V_1);
|
headers.addHeader(API_VERSION, V_1);
|
||||||
return headers;
|
return headers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "HttpHeaders{" +
|
||||||
|
"headers=" + headers +
|
||||||
|
'}';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,19 @@ public class HttpRequest {
|
||||||
.body(this.requestBody);
|
.body(this.requestBody);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "HttpRequest{" +
|
||||||
|
"id='" + id + '\'' +
|
||||||
|
", httpMethod=" + httpMethod +
|
||||||
|
", url='" + url + '\'' +
|
||||||
|
", httpHeaders=" + httpHeaders +
|
||||||
|
", parameters=" + parameters +
|
||||||
|
", requestBody=" + requestBody +
|
||||||
|
", compression=" + compression +
|
||||||
|
'}';
|
||||||
|
}
|
||||||
|
|
||||||
private HttpRequest(Builder builder) {
|
private HttpRequest(Builder builder) {
|
||||||
this.id = builder.id;
|
this.id = builder.id;
|
||||||
this.httpMethod = builder.httpMethod;
|
this.httpMethod = builder.httpMethod;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue