def fetch.fail.of

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

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

4917def fetch.fail.of(r: Result<&1, &1, Err, Res>) -> Result<&1, &1, Err, Stream>:
4918  match r:
4919    case Fail{e}:
4920      Fail{e}
4921    case Done{res}:
4922      Fail{ErrBad{}}

Uses (4)

Used by (1)