def up.sent

bend-kit-http@0.38.5.0 · http.bend:5385

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

5385def up.sent(+tls: Bool, +ms: U32, +head: Bool, m: Socket & Result<&1, &1, U32 & String, Unit>) -> Up:
5386  (s, r) = m
5387  match r:
5388    case Fail{(+code, why)}:
5389      Up{tls, s, ms, head, Some{err.or_late(code, ErrWrite{code, why})}}
5390    case Done{u}:
5391      Up{tls, s, ms, head, None{}}

Uses (12)

Used by (1)