def status

cswap-bend-cli@0.1.0.0 · http.bend:114

import cswap-bend-cli@0.1.0.0/http.bend as Http
import Base

114# The HTTP status `config` asked curl to append as the last line; 0 when absent.
115def status(raw: String) -> U32:
116  Maybe.default(&2, U32, U32.read(String.trim(last_line.pick(List.last(&2, String, String.lines(raw))))), 0)

Uses (8)

Used by (1)