Http.url.bytes: def of gralha-http-core@0.1.0.0 Import: import gralha-http-core@0.1.0.0/http.bend as Http Lines 124-134 of gralha-http-core@0.1.0.0/http.bend: https://jend.leeeet.dev/read.txt?path=gralha-http-core@0.1.0.0/http.bend&start_line=124&end_line=134 import Base def url.bytes(s: String, +acc: List<&2, U32>) -> List<&2, U32>: match s: case SNil{}: List.reverse(&2, U32, acc) case SCon{Chr{+c}, SCon{Chr{+x}, SCon{Chr{+y}, +t}}}: when(List<&2, U32>, U32.is_eq(c, 37) && hex.is_digit(x) && hex.is_digit(y), _ => url.bytes(t, (hex.digit(x) * 16 + hex.digit(y) : U32) <> acc), _ => url.bytes(SCon{Chr{x}, SCon{Chr{y}, t}}, utf8.push(when(U32, U32.is_eq(c, 43), _ => 32, _ => c), acc))) case SCon{Chr{+c}, t}: url.bytes(t, utf8.push(when(U32, U32.is_eq(c, 43), _ => 32, _ => c), acc)) Uses (13): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.reverse https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.mul https://jend.leeeet.dev/definition.txt?path=gralha-http-core@0.1.0.0/http.bend&name=hex.digit https://jend.leeeet.dev/definition.txt?path=gralha-http-core@0.1.0.0/http.bend&name=hex.is_digit https://jend.leeeet.dev/definition.txt?path=gralha-http-core@0.1.0.0/http.bend&name=utf8.push https://jend.leeeet.dev/definition.txt?path=gralha-http-core@0.1.0.0/http.bend&name=when