def fetch.final

bend-kit-http@0.38.2.0 · http.bend:4279

import bend-kit-http@0.38.2.0/http.bend as Http
import Base

4279# The final response of a fetch, after redirects.
4280def fetch.final(+enc: String, r: Result<&1, &1, Err, Res>) -> IO(Result<&1, &1, Err, Res>):
4281  match r:
4282    case Done{res}:
4283      decoded.io(enc, res)
4284    case Fail{e}:
4285      IO.pure(Result<&1, &1, Err, Res>, Fail{e})

Uses (7)

Used by (3)