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

Add gzip support for requests and responses #319

Merged
merged 6 commits into from
Aug 21, 2023
Merged

Add gzip support for requests and responses #319

merged 6 commits into from
Aug 21, 2023

Conversation

flimzy
Copy link
Member

@flimzy flimzy commented Jun 4, 2023

Fixes #288, except for POSTs to /_session, which is only supported in CouchDB 3.3. go-kivik/kivik#662 is tracking adding conditional support for this endpoint.

@codecov
Copy link

codecov bot commented Jun 4, 2023

Codecov Report

Patch coverage: 52.27% and project coverage change: -1.35% ⚠️

Comparison is base (7ec6846) 87.95% compared to head (5a9f770) 86.60%.
Report is 1 commits behind head on master.

❗ Current head 5a9f770 differs from pull request most recent head ba89197. Consider uploading reports for the commit ba89197 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     go-kivik/couchdb#319      +/-   ##
==========================================
- Coverage   87.95%   86.60%   -1.35%     
==========================================
  Files          32       32              
  Lines        2266     2352      +86     
==========================================
+ Hits         1993     2037      +44     
- Misses        197      236      +39     
- Partials       76       79       +3     
Files Changed Coverage Δ
chttp/errors.go 86.20% <ø> (ø)
chttp/options.go 64.51% <ø> (ø)
chttp/chttp.go 82.33% <50.00%> (-10.92%) ⬇️
bulk.go 57.77% <100.00%> (+0.95%) ⬆️
db.go 82.22% <100.00%> (+0.09%) ⬆️

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

@flimzy flimzy changed the title Add Accept-Encoding: gzip header to requests Add gzip support for requests and responses Jun 28, 2023
@flimzy flimzy force-pushed the gzip branch 4 times, most recently from efb2e2a to 5860a91 Compare July 9, 2023 20:18
@flimzy flimzy force-pushed the gzip branch 7 times, most recently from 2b56559 to f5a04a5 Compare July 29, 2023 19:32
@flimzy flimzy force-pushed the gzip branch 10 times, most recently from 0a86d71 to 99bd8a3 Compare August 4, 2023 21:20
@flimzy flimzy force-pushed the gzip branch 3 times, most recently from 4f3ee50 to ac1f003 Compare August 9, 2023 21:24
@flimzy flimzy force-pushed the gzip branch 3 times, most recently from 67fc8f0 to 42aec1d Compare August 18, 2023 19:59
@flimzy flimzy force-pushed the gzip branch 2 times, most recently from d6ce208 to 35f03fe Compare August 21, 2023 13:29
@flimzy flimzy merged commit bcf7b2b into master Aug 21, 2023
@flimzy flimzy deleted the gzip branch August 21, 2023 16:19
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.

Support gzip encoding to server
1 participant