def status.interim

emerging-ezhttp@0.21.0.0 · src/http.bend:1256

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

1256# a 1xx status is an interim response (RFC 9110 §15.2); a status line that
1257# did not parse is not
1258def status.interim(m: Maybe<&2, U32>) -> Bool:
1259  match m:
1260    case None{}:
1261      False{}
1262    case Some{+n}:
1263      Bool.and(U32.is_le(100, n), U32.is_lt(n, 200))

Uses (6)

Used by (4)