func ProcessChain(chain ChainSpec, ctx context.ContextSpec) (*http.Response, error) { for stateHandler := upstreamFn; stateHandler != nil; { stateHandler = stateHandler(chain, ctx) } return ctx.GetHttpResponse(), ctx.GetError() }