qiniu / python-sdk

Qiniu Resource (Cloud) Storage SDK for Python
MIT License
544 stars 259 forks source link

add http client middleware and getting region hosts with backup domains #434

Closed lihsai0 closed 1 year ago

lihsai0 commented 1 year ago

KODO-17790

codecov[bot] commented 1 year ago

Codecov Report

Merging #434 (972bed1) into master (4891d46) will increase coverage by 0.21%. The diff coverage is 87.67%.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/qiniu/python-sdk/pull/434/graphs/tree.svg?width=650&height=150&src=pr&token=gPEt34Nf4S&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiniu)](https://app.codecov.io/gh/qiniu/python-sdk/pull/434?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiniu) ```diff @@ Coverage Diff @@ ## master #434 +/- ## ========================================== + Coverage 74.91% 75.12% +0.21% ========================================== Files 20 26 +6 Lines 2224 2428 +204 ========================================== + Hits 1666 1824 +158 - Misses 558 604 +46 ``` | [Impacted Files](https://app.codecov.io/gh/qiniu/python-sdk/pull/434?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiniu) | Coverage Δ | | |---|---|---| | [qiniu/http/client.py](https://app.codecov.io/gh/qiniu/python-sdk/pull/434?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiniu#diff-cWluaXUvaHR0cC9jbGllbnQucHk=) | `67.92% <67.92%> (ø)` | | | [qiniu/config.py](https://app.codecov.io/gh/qiniu/python-sdk/pull/434?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiniu#diff-cWluaXUvY29uZmlnLnB5) | `75.00% <80.00%> (+5.00%)` | :arrow_up: | | [qiniu/http/middleware/retry\_domains.py](https://app.codecov.io/gh/qiniu/python-sdk/pull/434?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiniu#diff-cWluaXUvaHR0cC9taWRkbGV3YXJlL3JldHJ5X2RvbWFpbnMucHk=) | `83.63% <83.63%> (ø)` | | | [qiniu/http/middleware/base.py](https://app.codecov.io/gh/qiniu/python-sdk/pull/434?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiniu#diff-cWluaXUvaHR0cC9taWRkbGV3YXJlL2Jhc2UucHk=) | `85.71% <85.71%> (ø)` | | | [qiniu/http/response.py](https://app.codecov.io/gh/qiniu/python-sdk/pull/434?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiniu#diff-cWluaXUvaHR0cC9yZXNwb25zZS5weQ==) | `88.67% <88.67%> (ø)` | | | [qiniu/auth.py](https://app.codecov.io/gh/qiniu/python-sdk/pull/434?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiniu#diff-cWluaXUvYXV0aC5weQ==) | `98.05% <100.00%> (+0.16%)` | :arrow_up: | | [qiniu/http/\_\_init\_\_.py](https://app.codecov.io/gh/qiniu/python-sdk/pull/434?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiniu#diff-cWluaXUvaHR0cC9fX2luaXRfXy5weQ==) | `72.86% <100.00%> (ø)` | | | [qiniu/http/middleware/\_\_init\_\_.py](https://app.codecov.io/gh/qiniu/python-sdk/pull/434?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiniu#diff-cWluaXUvaHR0cC9taWRkbGV3YXJlL19faW5pdF9fLnB5) | `100.00% <100.00%> (ø)` | | | [qiniu/http/middleware/ua.py](https://app.codecov.io/gh/qiniu/python-sdk/pull/434?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiniu#diff-cWluaXUvaHR0cC9taWRkbGV3YXJlL3VhLnB5) | `100.00% <100.00%> (ø)` | | | [qiniu/region.py](https://app.codecov.io/gh/qiniu/python-sdk/pull/434?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiniu#diff-cWluaXUvcmVnaW9uLnB5) | `58.64% <100.00%> (-6.33%)` | :arrow_down: | | ... and [1 more](https://app.codecov.io/gh/qiniu/python-sdk/pull/434?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiniu) | | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/qiniu/python-sdk/pull/434/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=qiniu)