def send.at
bend-kit-webhooks@0.11.0.1 · webhooks.bend:471
import bend-kit-webhooks@0.11.0.1/webhooks.bend as Webhooks
import Base
import bend-kit-time@0.3.0.0/time.bend as Time
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
import bend-kit-hairpin@0.13.0.1/hairpin.bend as Hairpin
import bend-kit-retry@0.2.0.0/retry.bend as Retry
import bend-kit-http@0.38.1.1/http.bend as Http
471def send.at(c: Hairpin.Client, b: Retry.Budget, url: String, id: String, secret: String, body: Bytes.Bytes, now: Time.Instant) ->
472 IO(Hairpin.Client & Retry.Budget & Result<&1, &1, SendErr, Http.Res>):
473 match now:
474 case Time.Instant{secs, nanos}:
475 do IO<Hairpin.Client & Retry.Budget & Result<&1, &1, SendErr, Http.Res>>:
476 signed : Bytes.Bytes & Result<&1, &1, Err, Map<&2, List<&2, String>>> <- sign(id, secs, body, secret)
477 send.signed(c, b, url, signed)