cloudwego / hertz

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

feat: Handle uri directly instead of redirecting #1083

Open nanakura opened 5 months ago

nanakura commented 5 months ago

What type of PR is this?

feat

Check the PR title.

(Optional) Translate the PR title into Chinese.

如果当前路由无法匹配,但存在带(不带)尾部斜杠的handler,则自动启用该handler。

(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:

li-jin-gou commented 5 months ago

cc @cloudwego/hertz-maintainers

codecov[bot] commented 5 months ago

Codecov Report

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

Project coverage is 82.61%. Comparing base (b7cbc9d) to head (6325524).

:exclamation: Current head 6325524 differs from pull request most recent head e1231dd. Consider uploading reports for the commit e1231dd to get more accurate results

Files Patch % Lines
pkg/route/engine.go 0.00% 16 Missing and 1 partial :warning:
pkg/app/server/option.go 0.00% 5 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #1083 +/- ## =========================================== - Coverage 82.79% 82.61% -0.19% =========================================== Files 98 98 Lines 10032 10054 +22 =========================================== Hits 8306 8306 - Misses 1236 1257 +21 - Partials 490 491 +1 ```

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

nanakura commented 5 months ago

@li-jin-gou 下一步该做什么