cloudwego / hertz

Go HTTP framework with high-performance and strong-extensibility for building micro-services.
https://www.cloudwego.io
Apache License 2.0
5.28k stars 515 forks source link

feat: response support hijack for upgrade conn #1214

Closed xiaost closed 5 days ago

xiaost commented 1 week ago

What type of PR is this?

feat

Check the PR title.

(Optional) Translate the PR title into Chinese.

对于请求返回,支持挟持Upgrade的连接

(Optional) More detailed description for this PR(en: English/zh: Chinese).

en: zh(optional):

(Optional) Which issue(s) this PR fixes:

(Optional) The PR that updates user documentation:

codecov[bot] commented 1 week ago

Codecov Report

Attention: Patch coverage is 72.72727% with 9 lines in your changes missing coverage. Please review.

Project coverage is 82.58%. Comparing base (ea445e3) to head (2a286e1). Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
pkg/protocol/response.go 0.00% 8 Missing :warning:
pkg/protocol/http1/client.go 96.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #1214 +/- ## ======================================== Coverage 82.58% 82.58% ======================================== Files 124 124 Lines 11491 11520 +29 ======================================== + Hits 9490 9514 +24 - Misses 1428 1434 +6 + Partials 573 572 -1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.