feat: render support IndentedJSON
What type of PR is this?
feat
Check the PR title.
- [x] This PR title match the format: <type>(optional scope): <description>
- [x] The description of this PR title is user-oriented and clear enough for others to understand.
(Optional) Translate the PR title into Chinese.
render 支持 IndentedJSON
(Optional) More detail description for this PR(en: English/zh: Chinese).
en: add JSONP and IndentedJSON zh: render 支持 IndentedJSON
Which issue(s) this PR fixes:
PR中文翻译也补充下哈
Codecov Report
Base: 61.57% // Head: 64.62% // Increases project coverage by +3.05% :tada:
Coverage data is based on head (
ea3a5d8) compared to base (202fe6a). Patch coverage: 64.63% of modified lines in pull request are covered.
:exclamation: Current head ea3a5d8 differs from pull request most recent head da2d551. Consider uploading reports for the commit da2d551 to get more accurate results
Additional details and impacted files
@@ Coverage Diff @@
## develop #289 +/- ##
===========================================
+ Coverage 61.57% 64.62% +3.05%
===========================================
Files 84 84
Lines 8288 8325 +37
===========================================
+ Hits 5103 5380 +277
+ Misses 2831 2583 -248
- Partials 354 362 +8
| Impacted Files | Coverage Δ | |
|---|---|---|
| pkg/app/client/loadbalance/lbcache.go | 79.45% <0.00%> (ø) |
|
| pkg/app/client/loadbalance/weight_random.go | 88.09% <0.00%> (ø) |
|
| pkg/network/netpoll/transport.go | 0.00% <0.00%> (ø) |
|
| pkg/network/standard/transport.go | 0.00% <0.00%> (ø) |
|
| pkg/protocol/http1/client.go | 35.86% <0.00%> (ø) |
|
| pkg/app/fs.go | 68.65% <10.00%> (ø) |
|
| pkg/route/engine.go | 62.06% <11.11%> (ø) |
|
| pkg/app/server/render/html.go | 37.50% <77.77%> (ø) |
|
| pkg/app/server/hertz.go | 75.00% <80.00%> (ø) |
|
| pkg/app/server/render/json.go | 71.42% <93.10%> (+23.28%) |
:arrow_up: |
| ... and 13 more |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.