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