File tree 2 files changed +12
-2
lines changed
client/src/main/java/io/avaje/http/client
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ public HttpClientRequest request() {
95
95
}
96
96
97
97
@ Override
98
- public BodyAdapter converters () {
98
+ public BodyAdapter bodyAdapter () {
99
99
return bodyAdapter ;
100
100
}
101
101
Original file line number Diff line number Diff line change @@ -66,12 +66,22 @@ static Builder builder() {
66
66
HttpClientRequest request ();
67
67
68
68
/**
69
+ * Deprecated - migrate to {@link #bodyAdapter()}.
70
+ * <p>
69
71
* Return the body adapter used by the client context.
70
72
* <p>
71
73
* This is the body adapter used to convert request and response
72
74
* bodies to java types. For example using Jackson with JSON payloads.
73
75
*/
74
- BodyAdapter converters ();
76
+ @ Deprecated
77
+ default BodyAdapter converters () {
78
+ return bodyAdapter ();
79
+ }
80
+
81
+ /**
82
+ * Return the BodyAdapter that this client is using.
83
+ */
84
+ BodyAdapter bodyAdapter ();
75
85
76
86
/**
77
87
* Return the current aggregate metrics.
You can’t perform that action at this time.
0 commit comments