def Http.head_tail.go
import bend-kube-runtime@0.2.0.0/src/http.bend as Httpimport Base
254def Http.head_tail.go(+tail: U32, cr: Bool, lf: Bool, even: Bool) -> U32:
255 match cr lf even:
256 case True{} _ True{}:
257 (tail + 1 : U32)
258 case True{} _ False{}:
259 1
260 case False{} True{} False{}:
261 (tail + 1 : U32)
262 case _ _ _:
263 0