m3dev / octoparts

Octoparts, the backend services aggregator
https://m3dev.github.io/octoparts/
Other
151 stars 18 forks source link

Use pre-defined proxy if RequestMeta contains proxyId #187

Closed reki2000 closed 8 years ago

reki2000 commented 8 years ago

Proof-of-concept implementation for #180.

Client API for newRequest is changed - need additional meta parameter for 'proxyId' (optional). Clients should set this value by using 'X-OCTOPARTS-PROXY-ID' from HTTP header. This value is also passed to service provider so that the service provider pass it to other subsequencial request via Octoparts.

lloydmeta commented 8 years ago

Nice job putting together a PoC :+1:

A few thoughts:

@xevix would like to hear your thoughts as well.

reki2000 commented 8 years ago

I made another PR from my fork as commedted by @lloydmeta. Closing this PR.

lloydmeta commented 8 years ago

Closing for realsies.