Http.phrase.chop: def of emerging-ezhttp@0.21.0.0 Import: import emerging-ezhttp@0.21.0.0/src/http.bend as Http Lines 1775-1781 of emerging-ezhttp@0.21.0.0/src/http.bend: https://jend.leeeet.dev/read.txt?path=emerging-ezhttp@0.21.0.0/src/http.bend&start_line=1775&end_line=1781 import Base # the text of a reason phrase, a final CR removed def phrase.chop(text: String) -> String: match text: case SNil{}: SNil{} case SCon{+ch, +tl}: phrase.chop.at(Char.is_eq(ch, '\r'), ch, tl, _u => phrase.chop(tl)) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char.is_eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/http.bend&name=phrase.chop.at