def phrase.chop

emerging-ezhttp@0.21.0.0 · src/http.bend:1775

import emerging-ezhttp@0.21.0.0/src/http.bend as Http
import 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))

Uses (4)

Used by (1)