def Http.pct_bytes

bend-kube-runtime@0.2.0.0 · src/http.bend:119

import bend-kube-runtime@0.2.0.0/src/http.bend as Http
import Base

119def Http.pct_bytes(bs: List<&2, U32>, rest: String) -> String:
120  match bs:
121    case Nil{}:
122      rest
123    case Con{+b, t}:
124      SCon{'%', SCon{Http.pct_hex((b >> 4n : U32)), SCon{Http.pct_hex((b .&. 15 : U32)),
125        Http.pct_bytes(t, rest)}}}

Uses (7)

Used by (1)