feat: 重写toString方法

main
13009 2024-07-30 17:23:05 +08:00
parent 2807c889d1
commit baa10ede23
2 changed files with 20 additions and 0 deletions

View File

@ -63,4 +63,11 @@ public class HttpHeaders {
headers.addHeader(API_VERSION, V_1);
return headers;
}
@Override
public String toString() {
return "HttpHeaders{" +
"headers=" + headers +
'}';
}
}

View File

@ -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;