def redirect.on
import emerging-ezhttp@0.21.0.0/src/redirect.bend as Redirectimport Base
278# a response once it is known whether its status redirects
279def redirect.on(url: String, +loc: String, moved: Bool) -> Hop:
280 match moved:
281 case True{}:
282 redirect.hop(redirect.target(url, loc))
283 case False{}:
284 Stop{}