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

feat: new hooks API #3051

Closed
wants to merge 3 commits into from
Closed

feat: new hooks API #3051

wants to merge 3 commits into from

Conversation

ronag
Copy link
Member

@ronag ronag commented Apr 4, 2024

This relates to...

Rationale

Changes

Features

Bug Fixes

Breaking Changes and Deprecations

Status

@ronag ronag force-pushed the new-hooks branch 9 times, most recently from 0995e6e to c0d31c0 Compare April 4, 2024 10:43
Copy link
Contributor

@ShogunPanda ShogunPanda left a comment

Choose a reason for hiding this comment

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

In general looks fine to me.
Can you please also add on*Trailers?

/** Invoked before response is starting to be processed */
onResponseStart?(): void;
/** Invoked after status headers data has been received */
onResponseHeaders?(headers: Array<Buffer|string>, statusCode: number, statusText: string): void;
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: remember that technically the statusText is optional. So it should be statusText?: string.

@codecov-commenter
Copy link

codecov-commenter commented Apr 4, 2024

Codecov Report

Attention: Patch coverage is 83.08458% with 34 lines in your changes are missing coverage. Please review.

Project coverage is 93.42%. Comparing base (cae5625) to head (aefa796).
Report is 2 commits behind head on main.

❗ Current head aefa796 differs from pull request most recent head 6cb8980. Consider uploading reports for the commit 6cb8980 to get more accurate results

Files Patch % Lines
lib/dispatcher/client-h1.js 80.95% 32 Missing ⚠️
lib/core/request.js 93.75% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3051      +/-   ##
==========================================
- Coverage   93.51%   93.42%   -0.09%     
==========================================
  Files          89       89              
  Lines       24331    24505     +174     
==========================================
+ Hits        22754    22895     +141     
- Misses       1577     1610      +33     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ronag ronag force-pushed the new-hooks branch 7 times, most recently from 705a0d3 to d4fb661 Compare April 4, 2024 10:54
@ronag ronag force-pushed the new-hooks branch 5 times, most recently from ae67989 to 8b139ff Compare April 4, 2024 14:26
@ronag
Copy link
Member Author

ronag commented Apr 4, 2024

Closing in favour of simpler and less complete version. #3054

@ronag ronag closed this Apr 4, 2024
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.

None yet

3 participants