def up.sent

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

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

5393def up.sent(+tls: Bool, +ms: U32, +head: Bool, m: Socket & Result<&1, &1, U32 & String, Unit>) -> Up:
5394  (s, r) = m
5395  match r:
5396    case Fail{(+code, why)}:
5397      Up{tls, s, ms, head, Some{err.or_late(code, ErrWrite{code, why})}}
5398    case Done{u}:
5399      Up{tls, s, ms, head, None{}}

Uses (12)

Used by (1)