def frame.at

bend-kit-http@0.38.4.0 · http.bend:1104

import bend-kit-http@0.38.4.0/http.bend as Http
import Base

1104# ponytail: 8 interim responses; raise the fuel if a server sends more
1105def frame.at(fuel: Nat, +raw: String, closed: Bool, head: Bool) -> Frame:
1106  match fuel:
1107    case 0n:
1108      frame.at.zero(raw, closed, head)
1109    case 1n+f:
1110      frame.at.pos.do(f, raw, closed, head, split_at_blank(raw), frame.lead(split_at_blank(raw)))

Uses (8)

Used by (1)