Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@i110
Copy link
Contributor

@i110 i110 commented Jul 8, 2019

The user of httpclient occasionally wants to know how much the actually bytes written (for header, body and total) to the upstream. This PR expose that information.

Regarding http2client, it is controversial that what size should be exposed via this API. Is summation of actual written size of HEADERS or DATA frame, including frame headers?

NOTE: I decided to implement the same feature on http2client, when it is actually needed by someone :)

  • TODO
    - [ ] http2client

@i110 i110 force-pushed the i110/httpclient-bytes-written branch from bec3b4f to 1a56bd3 Compare July 9, 2019 03:52
Copy link
Member

@kazuho kazuho left a comment

Choose a reason for hiding this comment

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

Thank you for the PR. Looks fine modulo the points below.

Copy link
Member

@kazuho kazuho left a comment

Choose a reason for hiding this comment

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

Nitpicks.

Copy link
Member

@kazuho kazuho left a comment

Choose a reason for hiding this comment

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

Thank you for the changes. Please merge once the CI succeeds.

@i110 i110 merged commit f863b19 into master Jul 12, 2019
@i110 i110 deleted the i110/httpclient-bytes-written branch July 12, 2019 09:17
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.

3 participants