def path.target.of
import emerging-ezhttp@0.21.0.0/src/url.bend as Urlimport Base
106# origin-form path: absolute-path, then `?` query when the query is present
107def path.target.of(path: String, query: String, empty: Bool) -> String:
108 match empty:
109 case True{}:
110 path
111 case False{}:
112 path ++ "?" ++ query