Expand description
URL escaping for build-time resolvers.
percent-encoding does the work — it is already in the tree under ureq,
which does not re-export it. It began in opys-java and moved here when a
second resolver needed it: a GitLab project path travels as one segment,
group%2Fname.
Functions§
- decode_
uri_ component - Undo
encode_uri_componenton one path segment. A segment that does not decode to UTF-8 is returned as it was written — it is somebody’s file name, and being wrong about its spelling is worse than leaving it escaped. - encode_
uri_ component - Escape one path segment or query value,
encodeURIComponent-style. Needed wherever a caller’s string reaches a URL: a Temurin release name likejdk-21.0.13+11has to travel as%2B, or Adoptium reads it as a space and the lookup misses.