def talk.cont
bend-kit-http@0.38.5.0 · http.bend:5986
import bend-kit-http@0.38.5.0/http.bend as Http
import Base
import bend-kit-time@0.3.0.0/time.bend as Time
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
5986def talk.cont(cont: Bool, s: Socket, ms: U32) -> IO(Socket & Result<&1, &1, U32 & String, Unit>):
5987 match cont:
5988 case False{}:
5989 IO.pure(Socket & Result<&1, &1, U32 & String, Unit>, (s, Done{Unit{}}))
5990 case True{}:
5991 do IO<Socket & Result<&1, &1, U32 & String, Unit>>:
5992 now : Time.Duration <- Time.mono()
5993 bounded.send(s, Bytes.from_string("HTTP/1.1 100 Continue\r\n\r\n"), Time.Duration.add(now, Time.Duration.of_ms(ms)))