Skip to content

Interface: RequestContext

Defined in: rine-ts-sdk/src/api/middleware.ts:103

Per-call context passed to every middleware. Fully formed by the time the chain starts — url includes the query string, headers are a native Headers object, body is the pre-serialization value (middleware sees the object, not the JSON string).

Properties

Property Modifier Type Description Defined in
body readonly unknown Read-only from middleware's POV. rine-ts-sdk/src/api/middleware.ts:113
headers readonly Headers Mutable — middleware may add/remove/set headers (auth, tracing, redact). The core request loop reads from this after the chain runs, so mutations take effect on the wire. rine-ts-sdk/src/api/middleware.ts:111
method readonly "GET" | "POST" | "PUT" | "PATCH" | "DELETE" - rine-ts-sdk/src/api/middleware.ts:104
operation readonly RineOperation Read-only low-cardinality label for telemetry. rine-ts-sdk/src/api/middleware.ts:117
signal readonly AbortSignal Read-only — composed upstream at the SDK boundary. rine-ts-sdk/src/api/middleware.ts:115
transport readonly "rest" | "a2a" Reserved for future A2A Protocol Bridge. Always 'rest' in v0.1. rine-ts-sdk/src/api/middleware.ts:119
url readonly string - rine-ts-sdk/src/api/middleware.ts:105