cloudwego / hertz

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

feat(hz): add append_direction into update_behavior #1071

Open Kevinyyz opened 8 months ago

Kevinyyz commented 8 months ago

What type of PR is this?

Check the PR title.

(Optional) Translate the PR title into Chinese.

添加append_direction选项到update_behavior

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

en: Add the append_direction option to update_behavior, which controls the position of newly added content relative to the insertion point (before - in front of the insertion point; after - behind the insertion point); default: after. zh(optional): 添加append_direction选项到update_behavior中,用于控制新增内容追加到插入点的位置(before-在插入点前面;after-在插入点后面;),默认:after

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

(Optional) The PR that updates user documentation:

CLAassistant commented 8 months ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

:white_check_mark: Kevinyyz
:x: kevinzhang


kevinzhang seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

FGYFFFF commented 8 months ago

感谢 pr,整体没啥问题,先签一个 CLA 吧~

Kevinyyz commented 8 months ago

感谢 pr,整体没啥问题,先签一个 CLA 吧~

签好了~

image
codecov[bot] commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 82.82%. Comparing base (b7cbc9d) to head (1cc97a5).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #1071 +/- ## =========================================== + Coverage 82.79% 82.82% +0.02% =========================================== Files 98 98 Lines 10032 10032 =========================================== + Hits 8306 8309 +3 + Misses 1236 1233 -3 Partials 490 490 ```

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