def cookie.ctl
import bend-kit-http@0.38.2.0/http.bend as Httpimport Base
1894# %x00-08 / %x0A-1F / %x7F: control characters other than HTAB.
1895def cookie.ctl(s: String) -> Bool:
1896 match s:
1897 case SNil{}:
1898 False{}
1899 case SCon{Chr{+c}, t}:
1900 Bool.or(Bool.or(U32.is_lt(c, 9), Bool.and(U32.is_gt(c, 9), U32.is_lt(c, 32))), Bool.or(U32.is_eq(c, 127), cookie.ctl(t)))