def wire.put

emerging-ezhttp@0.21.0.0 · src/wire.bend:166

import emerging-ezhttp@0.21.0.0/src/wire.bend as Wire
import Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes

166# send the octets an exchange carries, then read its answer
167def wire.put(+secure: Bool, s: Socket, +host: String, +port: U32, +ms: U32,
168  +method: String, payload: Bytes.Bytes) -> IO(Answer):
169  Bytes.Bytes{+len, buf} = payload
170  IO.bind(Socket & Result<&1, &1, U32 & String, Unit>, Answer,
171    wire.send(secure, s, len, buf, ms),
172    r => wire.after.send(secure, host, port, ms, method, r))

Uses (13)

Used by (1)