def fetch.boxed

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

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

2513def fetch.boxed(r: Result<&1, &1, Err, Res>, none: Bool) -> Out:
2514  match r:
2515    case Done{res}:
2516      OutDone{res, None{}, Bytes.new(0)}
2517    case Fail{e}:
2518      OutFail{e, none}

Uses (7)

Used by (2)