def post_req
bendonnect-rpc@0.1.0.0 · src/protocol.bend:372
import bendonnect-rpc@0.1.0.0/src/protocol.bend as Protocol
import Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
372def post_req(+path: String, +headers: Map<&2, List<&2, String>>, +prefix: String) -> Result<&2, &1, Reject, Spec>:
373 do Result<&2, &1, Reject, Spec>:
374 proc : String <- parse_proc(path, prefix)
375 +ct : Ct <- content_type_of(headers)
376 ok : Unit <- check_version(headers)
377 t : Maybe<&2, U32> <- timeout_of(headers)
378 +enc : String <- get_enc(headers, post_enc_key(ct_stream(ct)))
379 return Spec{proc, ct_kind(ct), ct_codec(ct), t, enc, accept_of(headers, post_acc_key(ct_stream(ct)), enc), Bytes.new(0)}