def get_bytes

mlbend-huggingface@0.1.1.0 · main.bend:108

import mlbend-huggingface@0.1.1.0/main.bend as MlbendHuggingface
import Base
import bend-kit-http@0.36.0.0/http.bend as Http
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes

108# A GET, and the bytes it answered with.
109def get_bytes(url: String) -> IO(Result<&1, &1, Err, Bytes.Bytes>):
110  do IO<Result<&1, &1, Err, Bytes.Bytes>>:
111    r : Result<&1, &1, Http.Err, Http.Res> <- Http.get(url)
112    return bytes_of(r)

Uses (11)

Used by (1)