vagusX / koa-proxies

a koa@2.x+ proxy middleware
https://vagusx.github.io/koa-proxies/
MIT License
161 stars 43 forks source link

Pass context to options function #52

Closed JanChvala closed 3 years ago

JanChvala commented 4 years ago

In case anyone needs dynamic proxy target based on context (request headers)

closes #17

codecov[bot] commented 4 years ago

Codecov Report

Merging #52 into master will not change coverage by %. The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #52   +/-   ##
=======================================
  Coverage   92.50%   92.50%           
=======================================
  Files           1        1           
  Lines          40       40           
  Branches        7        7           
=======================================
  Hits           37       37           
  Misses          3        3           
Impacted Files Coverage Δ
index.js 92.50% <0.00%> (ø)

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 35d27b0...a1d3e19. Read the comment docs.

JanChvala commented 3 years ago

@vagusX @raphaelsoul Is there anything preventing this PR to be merged?

I am willing to change according to your needs. I do not want to spread the world with another fork but rather focus on this original repository.

vagusX commented 3 years ago