def probe.reply

cswap-bend-cli@0.1.0.0 · usage/req.bend:87

import cswap-bend-cli@0.1.0.0/usage/req.bend as Req
import Base
import cswap-bend-cli@0.1.0.0/http.bend as Http
import cswap-bend-cli@0.1.0.0/json.bend as Json
import cswap-bend-cli@0.1.0.0/usage/text.bend as UText

87def probe.reply(+r: Http.Reply) -> Result<&2, &2, Err, Json.Json>:
88  match r:
89    case Http.Reply{st, head, body}:
90      probe.pick(UText.usage_from_ratelimit_headers(head), ok2xx(st), http.err(r))

Uses (8)

Used by (1)