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: add ResponseHeader.contentEncoding #456

Merged
merged 23 commits into from Dec 28, 2022

Conversation

wang-tsh
Copy link
Contributor

@wang-tsh wang-tsh commented Dec 6, 2022

What type of PR is this?

feat

Check the PR title.

  • This PR title match the format: <type>(optional scope): <description>
  • The description of this PR title is user-oriented and clear enough for others to understand.

(Optional) Translate the PR title into Chinese.

为ResponseHeader 添加 contentEncoding 及相关方法

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

en: Adding a new field contentEncoding into ResponseHeader
Also fix Referer and Tests
zh(optional): 为ResponseHeader 添加一个字段 contentEncoding 同时修改测试以及其他方法中的引用

Which issue(s) this PR fixes:

Fixes #449

refer to valyala/fasthttp#1311

@CLAassistant
Copy link

CLAassistant commented Dec 6, 2022

CLA assistant check
All committers have signed the CLA.

@wang-tsh wang-tsh changed the title Feat add ResponseHeader.contentEncoding feat add ResponseHeader.contentEncoding Dec 8, 2022
@wang-tsh
Copy link
Contributor Author

wang-tsh commented Dec 9, 2022

@li-jin-gou plz approve running workflows & Review

@codecov
Copy link

codecov bot commented Dec 9, 2022

Codecov Report

Base: 69.53% // Head: 69.61% // Increases project coverage by +0.08% 🎉

Coverage data is based on head (66f2237) compared to base (495f1ae).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #456      +/-   ##
===========================================
+ Coverage    69.53%   69.61%   +0.08%     
===========================================
  Files           93       93              
  Lines         8810     8834      +24     
===========================================
+ Hits          6126     6150      +24     
  Misses        2320     2320              
  Partials       364      364              
Impacted Files Coverage Δ
pkg/app/fs.go 68.65% <100.00%> (ø)
pkg/protocol/header.go 74.93% <100.00%> (+0.68%) ⬆️
pkg/protocol/http1/resp/header.go 78.86% <100.00%> (+0.52%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@wang-tsh
Copy link
Contributor Author

wang-tsh commented Dec 9, 2022

@li-jin-gou I'd add some ut plz approve running workflows again

@wang-tsh
Copy link
Contributor Author

@li-jin-gou plz review it ,thanks

@FGYFFFF
Copy link
Contributor

FGYFFFF commented Dec 12, 2022

Please change the title to the standard format

@wang-tsh wang-tsh changed the title feat add ResponseHeader.contentEncoding feat: add ResponseHeader.contentEncoding Dec 12, 2022
@wang-tsh
Copy link
Contributor Author

Please change the title to the standard format
like this?

@wang-tsh wang-tsh changed the title feat: add ResponseHeader.contentEncoding feat(hz): add ResponseHeader.contentEncoding Dec 12, 2022
@wang-tsh
Copy link
Contributor Author

PTAL

@li-jin-gou li-jin-gou changed the title feat(hz): add ResponseHeader.contentEncoding feat: add ResponseHeader.contentEncoding Dec 13, 2022
@FGYFFFF FGYFFFF requested review from a team as code owners December 15, 2022 09:13
pkg/protocol/header.go Outdated Show resolved Hide resolved
@wang-tsh
Copy link
Contributor Author

wang-tsh commented Dec 17, 2022 via email

pkg/app/client/option.go Outdated Show resolved Hide resolved
pkg/protocol/header.go Show resolved Hide resolved
pkg/protocol/header_test.go Outdated Show resolved Hide resolved
@wang-tsh wang-tsh requested review from welkeyever and Skyenought and removed request for welkeyever December 28, 2022 07:49
Copy link
Member

@welkeyever welkeyever left a comment

Choose a reason for hiding this comment

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

LGTM, thx~

@welkeyever welkeyever requested a review from a team December 28, 2022 11:46
@welkeyever welkeyever enabled auto-merge (squash) December 28, 2022 11:47
@welkeyever welkeyever merged commit 90ec728 into cloudwego:develop Dec 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

possible to include this ctx.Response.Header.SetContentEncodingBytes <- ?
6 participants