def open.with

bend-kit-http@0.38.4.0 · http.bend:5360

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

5360# Follow redirects, then decode each body piece by Content-Encoding. No client certificate and no jar.
5361def open.with(method: String, url: String, headers: Map<&2, List<&2, String>>, body: Bytes.Bytes, +ms: U32) -> IO(Result<&1, &1, Err, Stream>):
5362  do IO<Result<&1, &1, Err, Stream>>:
5363    x : Maybe<&2, Jar> & Result<&1, &1, Err, Stream> <- open.how(ModeFollow{}, None{}, "", None{}, method, url, headers, body, ms)
5364    return stream.only(x)

Uses (17)

Used by (1)