def tokens
import bend-kit-websocket@0.4.0.0/websocket.bend as Websocketimport Base
193# Connection is a list header: its lines join into one comma list (RFC 9110 §5.3).
194def tokens(xs: List<&2, String>, +want: String) -> Bool:
195 match xs:
196 case Nil{}:
197 False{}
198 case Con{v, t}:
199 Bool.or(token(String.split(String.to_lower(v), ','), want), tokens(t, want))