Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cronet_http] - No way to retrieve information about the negotiated protocol #1094

Open
giannissterg opened this issue Dec 28, 2023 · 0 comments
Assignees
Labels
package:cronet_http type-enhancement A request for a change that isn't a bug

Comments

@giannissterg
Copy link

Using cronet_http for a research application, I have encountered a lacking feature. I would like to know the protocol I have agreed upon with the server I am communicating with. Specifically, I want to know whether the server has responded with an http/2 or an http/3 response.

From the native side, I can access this information, through UrlResponseInfo.getNegotiatedProtocol().

I should clarify that there doesn't seem to exist an appropriate field to the StreamedResponse class, thereby lack of access to this information is to be expected. Maybe there should also be a feature request for the negotiated protocol to the StreamedResponse class.

I have locally implemented the change, by adding this information to the response headers.

@giannissterg giannissterg added package:cronet_http type-enhancement A request for a change that isn't a bug labels Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:cronet_http type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

2 participants