def wire.code.of

emerging-ezhttp@0.21.0.0 · src/wirespec.bend:131

import emerging-ezhttp@0.21.0.0/src/wirespec.bend as Wirespec
import Base
import emerging-ezhttp@0.21.0.0/src/http.bend as Http

131# an answer's status: the number on its first line, if it is one
132def wire.code.of(c: Http.Cut, raw: String) -> Maybe<&2, U32>:
133  match c:
134    case Http.NoCut{}:
135      U32.read(raw)
136    case Http.Cut{before, after}:
137      U32.read(before)

Uses (5)

Used by (1)