Http.trim_end: def of bend-kit-http@0.38.4.0 Import: import bend-kit-http@0.38.4.0/http.bend as Http Lines 194-200 of bend-kit-http@0.38.4.0/http.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-http@0.38.4.0/http.bend&start_line=194&end_line=200 import Base # String.trim_end without the two reversed copies. def trim_end(s: String) -> String: match s: case SNil{}: SNil{} case SCon{+h, t}: trim_end.cons(h, trim_end(t), Char.is_space(h)) Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char.is_space https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=bend-kit-http@0.38.4.0/http.bend&name=trim_end.cons