Skip to content

feat(gax): add StringHttpResponseParser - #14135

Draft
whowes wants to merge 1 commit into
whowes/http-content-supportfrom
whowes/string-http-response-parser
Draft

feat(gax): add StringHttpResponseParser#14135
whowes wants to merge 1 commit into
whowes/http-content-supportfrom
whowes/string-http-response-parser

Conversation

@whowes

@whowes whowes commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Currently gax-httpjson includes only one HTTP response parser (ProtoMessageResponseParser) which assumes response bodies can be parsed into protos.

Resumable upload HTTP operations will return non-proto responses (including empty response bodies where all metadata is exchanged via headers/return code) so we'll need a more general response parser to be able to use the existing HTTP stack to talk to the upload service.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces StringHttpResponseParser, a new implementation of HttpResponseParser that reads HTTP response bodies as UTF-8 strings. It also includes a comprehensive suite of unit tests in StringHttpResponseParserTest covering successful parsing from input streams and readers, empty inputs, error handling, and serialization. I have no further feedback to provide as the implementation is clean and well-tested.

@whowes whowes changed the title whowes/string http response parser feat(gax): add StringHttpResponseParser Aug 19, 2026
@sonarqubecloud

Copy link
Copy Markdown

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed for 'gapic-generator-java-root'

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant