def get.file.got

ezx@1.11.0.0 · src/hub/hub.bend:19

import ezx@1.11.0.0/src/hub/hub.bend as Hub
import Base

19# a file url read off the disk. curl served these too, and a test that wants a
20# body without a server to serve it is the reason to keep them.
21def get.file.got(got: Maybe<&2, String>, path: String) -> String:
22  match got:
23    case None{}:
24      "2\n" ++ path ++ " is not there"
25    case Some{s}:
26      "0\n" ++ s

Uses (3)

Used by (1)