def wire.run
import emerging-ezhttp@0.21.0.0/src/wire.bend as Wireimport Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
import emerging-ezhttp@0.21.0.0/src/wirespec.bend as Spec
270# a request with this method, sent to a host as wirespec.bend says, with
271# its tail of octets after it, every call bounded by the deadline; its whole
272# answer
273def wire.run(+secure: Bool, +ms: U32, +host: String, +port: U32,
274 +method: String, req: String, tail: Bytes.Bytes) -> IO(Answer):
275 wire.run.with(secure, ms, host, port, method,
276 Bytes.append(Bytes.from_string(Spec.wire.payload(req)), tail))