def hwin

cswap-bend-cli@0.1.0.0 · usage/text.bend:199

import cswap-bend-cli@0.1.0.0/usage/text.bend as Text
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

199# One window ("5h" or "7d") of the rate-limit headers: utilization is a
200# fraction, reset an epoch. No utilization header, no window.
201def hwin(+p: String, +head: String) -> Maybe<&2, Json.Json>:
202  hwin.util(Http.header(rl() ++ p ++ "-utilization:", head), Http.header(rl() ++ p ++ "-reset:", head))

Uses (7)

Used by (1)