rybalkinsd / kohttp

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

adds interceptor to sign query params #68

Closed gokulchandra closed 5 years ago

gokulchandra commented 5 years ago

Initial implementation for #52.

I considered both the approaches mentioned in the issue.

DSL on params

Defining an interceptor

Different services sign their requests differently eg: amazon vs twitter

@rybalkinsd But would it be more flexible to let user the user define their own interceptor? Thoughts?

We can further refactor the implementation based on the design we arrive at.

codecov[bot] commented 5 years ago

Codecov Report

Merging #68 into master will increase coverage by 0.21%. The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #68      +/-   ##
============================================
+ Coverage     94.76%   94.97%   +0.21%     
- Complexity       86       89       +3     
============================================
  Files            21       22       +1     
  Lines           210      219       +9     
  Branches         13       13              
============================================
+ Hits            199      208       +9     
  Misses            2        2              
  Partials          9        9
Impacted Files Coverage Δ Complexity Δ
...balkinsd/kohttp/interceptors/SigningInterceptor.kt 100% <100%> (ø) 2 <2> (?)

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 8323e1a...75c1d85. Read the comment docs.

rybalkinsd commented 5 years ago

@gokulchandra I'll do my best to give feedback today or tomorrow

gokulchandra commented 5 years ago

@rybalkinsd Any updates on this PR?

rybalkinsd commented 5 years ago

Will create release/0.8.0 branch and start merging to it

rybalkinsd commented 5 years ago

@gokulchandra could u pls change target branch to release/0.8.0 ?

rybalkinsd commented 5 years ago

Next will merge LogingInterceptor PR and unify API

rybalkinsd commented 5 years ago

Great job @gokulchandra !