refactor(gax): add startUnaryCall to HttpJsonClientCalls - #14136
Conversation
There was a problem hiding this comment.
Code Review
This pull request refactors HttpJsonClientCalls.java by extracting the logic for starting a unary call from futureUnaryCall into a new helper method, startUnaryCall. This new method accepts a custom HttpJsonClientCall.Listener parameter, allowing for more flexible call handling, while futureUnaryCall is updated to delegate to this helper. There are no review comments, and I have no feedback to provide.
abf6f55 to
37eaf01
Compare
37eaf01 to
51d3a10
Compare
40a0bf9 to
84d4293
Compare
84d4293 to
b9389c0
Compare
b9389c0 to
897fba0
Compare
de0deb7 to
52161e1
Compare
52161e1 to
5f7b499
Compare
8d5ca43 to
52de5c5
Compare
52de5c5 to
3cdf3ad
Compare
3cdf3ad to
30feb38
Compare
30feb38 to
0776d87
Compare
0776d87 to
dfd32d0
Compare
dfd32d0 to
40207ef
Compare
40207ef to
604ac83
Compare
604ac83 to
765d9bc
Compare
765d9bc to
0b35123
Compare
0b35123 to
d6e1146
Compare
|
|




HttpJsonClientCalls currently allows callers access to the HTTP response body. The newly-added startUnaryCall allows callers to provide a Listener that allows action based on status codes and headers, both of which are needed for resumable uploads.