def open.raw.how

bend-kit-http@0.38.5.0 · http.bend:5298

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

5298# A raw stream with every choice of fetch: mode for redirects, cert and ca for the first origin and each
5299# same-origin hop ("" trusts the default store), and a jar that gives cookies to every hop and takes them
5300# from every response. The jar comes back beside the stream. Body bytes and headers remain as sent.
5301def open.raw.how(mode: Mode, cert: Maybe<&2, Cert>, ca: String, jar: Maybe<&2, Jar>, method: String, url: String,
5302    headers: Map<&2, List<&2, String>>, body: Bytes.Bytes, +ms: U32) -> IO(Maybe<&2, Jar> & Result<&1, &1, Err, Stream>):
5303  do IO<Maybe<&2, Jar> & Result<&1, &1, Err, Stream>>:
5304    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)
5305    stream.unpooled(x)

Uses (19)

Used by (1)