feat: 重写toString方法
parent
2807c889d1
commit
baa10ede23
|
|
@ -63,4 +63,11 @@ public class HttpHeaders {
|
|||
headers.addHeader(API_VERSION, V_1);
|
||||
return headers;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "HttpHeaders{" +
|
||||
"headers=" + headers +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -69,6 +69,19 @@ public class HttpRequest {
|
|||
.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) {
|
||||
this.id = builder.id;
|
||||
this.httpMethod = builder.httpMethod;
|
||||
|
|
|
|||
Loading…
Reference in New Issue