def pool.next.move
bend-kit-http@0.38.2.0 · http.bend:3974
import bend-kit-http@0.38.2.0/http.bend as Http
import Base
3974def pool.next.move(p: Pool, +old: String, cert: Maybe<&2, Cert>, jar: Maybe<&2, Jar>, +ca: String, n: Next) -> Hops:
3975 match n:
3976 case NGo{left, h}:
3977 Hop{method, +url, headers, body} = h
3978 +same = String.eq(old, redirect.origin(url))
3979 Hops{p, NGo{left, Hop{method, url, headers, body}},
3980 Bool.pick(Maybe<&2, Cert>, same, cert, None{}), jar, pool.next.ca(same, ca)}
3981 case NDone{r}:
3982 Hops{p, NDone{r}, None{}, jar, ""}
3983 case NStop{}:
3984 Hops{p, NStop{}, None{}, jar, ""}