def get.scheme

ezx@1.11.0.0 · src/hub/get.bend:35

import ezx@1.11.0.0/src/hub/get.bend as Get
import Base

35# a url whose scheme decides where the body comes from
36def get.scheme(file: Bool, url: String, path: String) -> IO(String):
37  match file:
38    case True{}:
39      get.file(path)
40    case False{}:
41      get.http(url)

Uses (5)

Used by (1)