tangcent / easy-yapi

Generate API document to yapi
https://easyyapi.com
GNU Affero General Public License v3.0
425 stars 141 forks source link

feat: added functionality to choose between apache and okHttp for sending HTTP requests via settings #1132

Closed tangcent closed 1 month ago

tangcent commented 2 months ago

ref: #1130

codecov[bot] commented 2 months ago

Codecov Report

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

Project coverage is 62.697%. Comparing base (0f706c1) to head (e0fa630). Report is 1 commits behind head on master.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1132/graphs/tree.svg?width=650&height=150&src=pr&token=J6RUGI54XV&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent)](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1132?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent) ```diff @@ Coverage Diff @@ ## master #1132 +/- ## =============================================== + Coverage 62.073% 62.697% +0.624% - Complexity 2289 2372 +83 =============================================== Files 250 254 +4 Lines 12126 12302 +176 Branches 2996 3032 +36 =============================================== + Hits 7527 7713 +186 - Misses 2994 3006 +12 + Partials 1605 1583 -22 ``` | [Flag](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1132/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1132/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent) | `62.697% <81.685%> (+0.624%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1132?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent) | Coverage Δ | | |---|---|---| | [...main/kotlin/com/itangcent/http/ApacheHttpClient.kt](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1132?src=pr&el=tree&filepath=common-api%2Fsrc%2Fmain%2Fkotlin%2Fcom%2Fitangcent%2Fhttp%2FApacheHttpClient.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent#diff-Y29tbW9uLWFwaS9zcmMvbWFpbi9rb3RsaW4vY29tL2l0YW5nY2VudC9odHRwL0FwYWNoZUh0dHBDbGllbnQua3Q=) | `92.157% <100.000%> (+0.853%)` | :arrow_up: | | [...i/src/main/kotlin/com/itangcent/http/HttpClient.kt](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1132?src=pr&el=tree&filepath=common-api%2Fsrc%2Fmain%2Fkotlin%2Fcom%2Fitangcent%2Fhttp%2FHttpClient.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent#diff-Y29tbW9uLWFwaS9zcmMvbWFpbi9rb3RsaW4vY29tL2l0YW5nY2VudC9odHRwL0h0dHBDbGllbnQua3Q=) | `100.000% <ø> (ø)` | | | [...m/itangcent/idea/plugin/settings/HttpClientType.kt](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1132?src=pr&el=tree&filepath=idea-plugin%2Fsrc%2Fmain%2Fkotlin%2Fcom%2Fitangcent%2Fidea%2Fplugin%2Fsettings%2FHttpClientType.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent#diff-aWRlYS1wbHVnaW4vc3JjL21haW4va290bGluL2NvbS9pdGFuZ2NlbnQvaWRlYS9wbHVnaW4vc2V0dGluZ3MvSHR0cENsaWVudFR5cGUua3Q=) | `100.000% <100.000%> (ø)` | | | [...lin/com/itangcent/idea/plugin/settings/Settings.kt](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1132?src=pr&el=tree&filepath=idea-plugin%2Fsrc%2Fmain%2Fkotlin%2Fcom%2Fitangcent%2Fidea%2Fplugin%2Fsettings%2FSettings.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent#diff-aWRlYS1wbHVnaW4vc3JjL21haW4va290bGluL2NvbS9pdGFuZ2NlbnQvaWRlYS9wbHVnaW4vc2V0dGluZ3MvU2V0dGluZ3Mua3Q=) | `98.225% <100.000%> (+32.038%)` | :arrow_up: | | [...nt/idea/plugin/settings/xml/ApplicationSettings.kt](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1132?src=pr&el=tree&filepath=idea-plugin%2Fsrc%2Fmain%2Fkotlin%2Fcom%2Fitangcent%2Fidea%2Fplugin%2Fsettings%2Fxml%2FApplicationSettings.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent#diff-aWRlYS1wbHVnaW4vc3JjL21haW4va290bGluL2NvbS9pdGFuZ2NlbnQvaWRlYS9wbHVnaW4vc2V0dGluZ3MveG1sL0FwcGxpY2F0aW9uU2V0dGluZ3Mua3Q=) | `100.000% <100.000%> (ø)` | | | [...m/itangcent/suv/http/AbstractHttpClientProvider.kt](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1132?src=pr&el=tree&filepath=idea-plugin%2Fsrc%2Fmain%2Fkotlin%2Fcom%2Fitangcent%2Fsuv%2Fhttp%2FAbstractHttpClientProvider.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent#diff-aWRlYS1wbHVnaW4vc3JjL21haW4va290bGluL2NvbS9pdGFuZ2NlbnQvc3V2L2h0dHAvQWJzdHJhY3RIdHRwQ2xpZW50UHJvdmlkZXIua3Q=) | `100.000% <100.000%> (ø)` | | | [...om/itangcent/suv/http/DefaultHttpClientProvider.kt](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1132?src=pr&el=tree&filepath=idea-plugin%2Fsrc%2Fmain%2Fkotlin%2Fcom%2Fitangcent%2Fsuv%2Fhttp%2FDefaultHttpClientProvider.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent#diff-aWRlYS1wbHVnaW4vc3JjL21haW4va290bGluL2NvbS9pdGFuZ2NlbnQvc3V2L2h0dHAvRGVmYXVsdEh0dHBDbGllbnRQcm92aWRlci5rdA==) | `100.000% <100.000%> (ø)` | | | [.../itangcent/suv/http/HttpClientScriptInterceptor.kt](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1132?src=pr&el=tree&filepath=idea-plugin%2Fsrc%2Fmain%2Fkotlin%2Fcom%2Fitangcent%2Fsuv%2Fhttp%2FHttpClientScriptInterceptor.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent#diff-aWRlYS1wbHVnaW4vc3JjL21haW4va290bGluL2NvbS9pdGFuZ2NlbnQvc3V2L2h0dHAvSHR0cENsaWVudFNjcmlwdEludGVyY2VwdG9yLmt0) | `92.405% <100.000%> (ø)` | | | [.../src/main/kotlin/com/itangcent/http/HttpRequest.kt](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1132?src=pr&el=tree&filepath=common-api%2Fsrc%2Fmain%2Fkotlin%2Fcom%2Fitangcent%2Fhttp%2FHttpRequest.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent#diff-Y29tbW9uLWFwaS9zcmMvbWFpbi9rb3RsaW4vY29tL2l0YW5nY2VudC9odHRwL0h0dHBSZXF1ZXN0Lmt0) | `85.385% <50.000%> (-0.553%)` | :arrow_down: | | [...gcent/idea/plugin/api/export/suv/SuvApiExporter.kt](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1132?src=pr&el=tree&filepath=idea-plugin%2Fsrc%2Fmain%2Fkotlin%2Fcom%2Fitangcent%2Fidea%2Fplugin%2Fapi%2Fexport%2Fsuv%2FSuvApiExporter.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent#diff-aWRlYS1wbHVnaW4vc3JjL21haW4va290bGluL2NvbS9pdGFuZ2NlbnQvaWRlYS9wbHVnaW4vYXBpL2V4cG9ydC9zdXYvU3V2QXBpRXhwb3J0ZXIua3Q=) | `0.000% <0.000%> (ø)` | | | ... and [7 more](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1132?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent) | | ... and [4 files with indirect coverage changes](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1132/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent) ------ [Continue to review full report in Codecov by Sentry](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1132?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent). > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent) > `Δ = absolute (impact)`, `ø = not affected`, `? = missing data` > Powered by [Codecov](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1132?dropdown=coverage&src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent). Last update [0f706c1...e0fa630](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1132?dropdown=coverage&src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent).
KK-Karl commented 2 months ago

试了 ,真的可以了。 谢谢大神。 112233