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