bend-kit-http
Search uses release 0.38.4.0 · 1,026 definitions
Definitions (1,026)
- def retry.after.date
- def retry.after.secsMore than 5 digits is past the cap, and would overflow parse_u32.
- def retry.afterRetry-After (RFC 9110 §10.2.3) as ms from now, at most retry.cap(): delay-seconds, or an HTTP-date (a past date is 0).
- def retry.wait
- def retry.delayThe wait before retry n: Retry-After v when it reads as a delay, else backoff with jitter r.
- def retry.statusStatuses a later try may clear.
- def retry.failA refused connect or a timeout may clear; any other error would repeat.
- def retry.res
- def retry.judge.try
- def retry.judgeOne try, judged: the result as it came, and Some{Retry-After value} ("" when absent) when an idempotent request may try again.
- def retry.jitterponytail: a failed random source gives jitter 0, so the wait is the lower half.
- def retry.sleep
- def retry.kept
- def retry.oneOne fetch of the copy; the body comes back for the next try.
- def retry.goleft: retries still allowed.
- def retry.startfetch.retry(n, method, url, headers, body) is fetch, tried again up to n times while an idempotent method (GET, HEAD, OPTIONS, TRACE, PUT, DELETE) gets a connect error, a timeout, or 408, 429, 500, 502, 503, or 504.
- def fetch.retry
- type PoStreaming (a body read or sent in pieces).
- type Streamback: the pool key, while the connection can take another request after this body.
- type Pc
- def pc.poA body piece, or none when empty: more reads the next piece, and not more is the end.
- def pc.piece
- def pc.fed.of
- def pc.fed
- def pc.ofThe body bytes that just arrived: what they add to the body, and how it ends.
- def pc.endThe server closed.
- def pc.eof
- def stream.pc.ofpc.of, and whether bytes came past the end of the body.
- def stream.pc
- def stream.mkBytes past the body put the socket out of step with the server, so it cannot go back to a pool.
- def stream.got.piece
- def stream.got
- def stream.after
- type Fed
- def stream.feed.received
- def stream.feed.step
- def stream.feed.one
- def stream.feed.reverse
- def stream.feed.all
- def stream.ready
- def stream.feed.got
- def stream.feed.st
- def stream.finish.ok
- def stream.finish
- def stream.ended
- def stream.read
- def stream.resStatus and headers.
- def stream.close
- def stream.po.end
- def stream.rb.done
- def stream.give
- def pool.stream.closestream.close, but a body read to its end and decoded cleanly gives its connection to the pool.
- type ShHead read state: still scanning, cut short or bad, or the head with the bytes after it.
- def sh.of
- def sh.none
- def sh.piece
- def sh.next
- def fetch.fail.of
- def stream.backThe connection can take another request only when the server did not say close and the body does not end at close.
- def stream.head
- def stream.sent
- def stream.connThe bool is true when the open failed before any response byte.
- def stream.opened
- def stream.freshA new connection, with no h2 offer.
- def stream.stale
- def stream.reused
- def stream.idleAn idle socket from the pool; an h2 session goes back, since a stream speaks HTTP/1.1.
- def stream.takeCopy the request only for a reused socket, for a stale-socket retry.
- def stream.routeOne HTTP/1.1 connection per stream: an idle one from the pool, else a new one.
- def stream.origin.choice
- def stream.origincert and ca: the client identity and trusted CA file for this origin.
- def stream.one.back
- def stream.one.ofsent is headers plus any jar cookies; the hop keeps headers, so cookies never pile up across hops.
- def stream.oneOne request, on an idle socket to its origin when the pool has one.
- type SnGo: the next request.
- def sn.of
- def stream.decide.done
- def stream.decide.n
- type StreamHopsThe redirect loop's state for a stream: what to do next, the client identity, the jar, and the CA file.
- def stream.trustThe certificate and CA file go on only to a hop on the same origin, as in pool.next.move.
- def stream.decide.trust
- def stream.decide.jar
- def stream.decide.ofThe jar takes the response's Set-Cookie fields first, redirect or not.
- def stream.decide
- def stream.step
- def stream.hops
- type Opened
- def stream.open.got
- def stream.open.add
- def stream.open.zstd
- def stream.open.br
- def stream.open.gz
- def stream.open.step
- def stream.open.one
- def stream.open.all
- def stream.put.decs
- def stream.init.opened
- def stream.init.known
- def stream.init.st
- def stream.init