feat(gax): add HTTP/JSON implementation of ResumableUploadClient.startUpload - #14091
feat(gax): add HTTP/JSON implementation of ResumableUploadClient.startUpload#14091whowes wants to merge 1 commit into
Conversation
67ced68 to
a2f2378
Compare
16d875f to
e808397
Compare
e808397 to
dbd35b6
Compare
003083c to
34d9c14
Compare
dbd35b6 to
1435243
Compare
34d9c14 to
68cadaf
Compare
1435243 to
880655e
Compare
|
/gemini review |
880655e to
2ad83c8
Compare
68cadaf to
c07069b
Compare
2ad83c8 to
2937dba
Compare
2937dba to
f551afe
Compare
8a4d18e to
8ca4f84
Compare
1d39523 to
8f5e0d3
Compare
8ca4f84 to
4030840
Compare
8f5e0d3 to
b3d0b13
Compare
4030840 to
087c159
Compare
|
b3d0b13 to
62fbb8c
Compare
5a27f29 to
8765335
Compare
37b56c9 to
b4e8162
Compare
|
/gemini review |
b4e8162 to
ccfc57f
Compare
202c82a to
2c264da
Compare
ccfc57f to
dfe0617
Compare
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces the HttpJsonResumableUploadClient class and its corresponding unit tests to support resumable uploads over HTTP/JSON. The reviewer suggested a minor code cleanup to remove a redundant cast to HttpJsonCallContext when setting up the call context.
| HttpJsonCallContext context = | ||
| (HttpJsonCallContext) | ||
| HttpJsonCallContext.createDefault() | ||
| .nullToSelf(clientContext.getDefaultCallContext()) | ||
| .merge(inputContext) | ||
| .withExtraHeaders(START_UPLOAD_HEADERS); |
There was a problem hiding this comment.
The cast to HttpJsonCallContext is redundant because HttpJsonCallContext.createDefault(), nullToSelf(), merge(), and withExtraHeaders() all return HttpJsonCallContext (or covariant subtypes thereof), meaning the entire chain already evaluates to HttpJsonCallContext.
HttpJsonCallContext context =
HttpJsonCallContext.createDefault()
.nullToSelf(clientContext.getDefaultCallContext())
.merge(inputContext)
.withExtraHeaders(START_UPLOAD_HEADERS);dfe0617 to
3655e2e
Compare
2c264da to
c0e396a
Compare
|
|







Stack created with GitHub Stacks CLI • Give Feedback 💬