rybalkinsd / kohttp

Kotlin DSL http client
https://kohttp.gitbook.io
Apache License 2.0
480 stars 42 forks source link

[kohttp-jackson] #153 #150

Closed rybalkinsd closed 5 years ago

rybalkinsd commented 5 years ago

153

  1. remastered asJson -> toJson
  2. introduced toJsonOrNull
  3. introduced toType<>

The idea is: toJson and toJsonOrNull should work semantically same as toInt and toIntOrNull functions

codecov[bot] commented 5 years ago

Codecov Report

Merging #150 into feature/126-multipart will increase coverage by 0.46%. The diff coverage is 92.85%.

Impacted file tree graph

@@                    Coverage Diff                    @@
##             feature/126-multipart   #150      +/-   ##
=========================================================
+ Coverage                    90.54%    91%   +0.46%     
  Complexity                     129    129              
=========================================================
  Files                           43     43              
  Lines                          370    378       +8     
  Branches                        43     43              
=========================================================
+ Hits                           335    344       +9     
- Misses                          10     11       +1     
+ Partials                        25     23       -2
Impacted Files Coverage Δ Complexity Δ
...ithub/rybalkinsd/kohttp/jackson/ext/ResponseExt.kt 92.85% <92.85%> (+59.52%) 0 <0> (ø) :arrow_down:
...kohttp/interceptors/logging/CurlLoggingStrategy.kt 95.45% <0%> (-0.2%) 8% <0%> (ø)
...hub/rybalkinsd/kohttp/dsl/context/UploadContext.kt 100% <0%> (ø) 6% <0%> (ø) :arrow_down:
...alkinsd/kohttp/dsl/context/MultipartBodyContext.kt 100% <0%> (ø) 7% <0%> (ø) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 9e7b7a3...29b37d7. Read the comment docs.