def phrase.chop
import emerging-ezhttp@0.21.0.0/src/http.bend as Httpimport Base
1775# the text of a reason phrase, a final CR removed
1776def phrase.chop(text: String) -> String:
1777 match text:
1778 case SNil{}:
1779 SNil{}
1780 case SCon{+ch, +tl}:
1781 phrase.chop.at(Char.is_eq(ch, '\r'), ch, tl, _u => phrase.chop(tl))