def pool.h2.result

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

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

3698def pool.h2.result(p: Pool, +key: String, r: Result<&1, &1, Err, Conn & Res>) ->
3699    IO(Pool & Result<&1, &1, Err, Res>):
3700  match r:
3701    case Fail{e}:
3702      IO.pure(Pool & Result<&1, &1, Err, Res>, (p, Fail{e}))
3703    case Done{(c, res)}:
3704      pool.h2.keep(p, key, res, pool.h2.reusable(c))

Uses (12)

Used by (1)