def open.raw.how

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

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

5306# A raw stream with every choice of fetch: mode for redirects, cert and ca for the first origin and each
5307# same-origin hop ("" trusts the default store), and a jar that gives cookies to every hop and takes them
5308# from every response. The jar comes back beside the stream. Body bytes and headers remain as sent.
5309def open.raw.how(mode: Mode, cert: Maybe<&2, Cert>, ca: String, jar: Maybe<&2, Jar>, method: String, url: String,
5310    headers: Map<&2, List<&2, String>>, body: Bytes.Bytes, +ms: U32) -> IO(Maybe<&2, Jar> & Result<&1, &1, Err, Stream>):
5311  do IO<Maybe<&2, Jar> & Result<&1, &1, Err, Stream>>:
5312    x : Pool & Maybe<&2, Jar> & Result<&1, &1, Err, Stream> <- pool.open.raw.how(pool.new(), mode, cert, ca, jar, method, url, headers, body, ms)
5313    stream.unpooled(x)

Uses (19)

Used by (1)