dialHttp
View as Markdownfunction dialHttp(o): AgentLink;Defined in: agent/src/transport/http.ts:163
One HTTP streaming link (FaaS mode): POST /agent/connect once, then
- downstream:
GET /agent/stream?link&cursorreopened withcursor.get()— at once after arotateor a stream that delivered lines, with backoff otherwise. Aseq <= cursoris skipped; the cursor advances when a frame is dispatched and is acknowledged on the next request. - upstream: one serialized queue packed into bodies ≤
MAX_HTTP_BODY_BYTES; eachtool_callin its own parallel POST. Every message keeps itsup_id until the hub lists it as processed (the hub dedupes),retryids are re-sent after backoff. 401 with the hub’sunauthorizederror →revoked(any other 401 is retried), 400link_replaced(or areplacedline) →replaced, 426 →upgrade, 400link_closed→ the link ends (the site connects again).
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
o |
DialOptions |