14262: Refactoring proxy
authorPeter Amstutz <pamstutz@veritasgenetics.com>
Thu, 18 Oct 2018 20:08:28 +0000 (16:08 -0400)
committerPeter Amstutz <pamstutz@veritasgenetics.com>
Tue, 30 Oct 2018 18:12:02 +0000 (14:12 -0400)
commitb4e123604561174f928beab0f0a8fba7cbf2d33d
tree7fcf8cd8ce8c47ac64decc0dcda84ddad656edb0
parent5643759e918f5919174afc32b2c6556e13548e6d
14262: Refactoring proxy

Split proxy.Do() into ForwardRequest() and ForwardResponse().

Inversion of control eliminates need for "filter" callback, since the
caller can now modify the response in between the calls to
ForwardRequest() and ForwardResponse().

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz@veritasgenetics.com>
lib/controller/federation.go
lib/controller/handler.go
lib/controller/proxy.go