Saxonberg Server API
    Preparing search index...

    Class ProxyApi

    Index

    Properties

    RAW_TARGET: symbol = RAW_TARGET

    Symbol seam for unwrapping (re-exported from RAW_TARGET above).

    Methods

    • Append interceptor to the pipeline. Interceptors run in the order they were registered; the first registered runs outermost.

      Once registered, an interceptor can't be removed — registration is for boot-time framework wiring, not runtime composition.

      Parameters

      Returns void

    • Extract the raw underlying Stuff from a proxy. Returns the input as-is if it isn't proxied. Production code should rarely need this — reach for it only when you need to bypass the entire framework (tests, debugging, framework internals).

      Type Parameters

      Parameters

      • stuffOrProxy: T

      Returns T

    • Wrap a raw Stuff in a Proxy. Returns a Proxy that is type- compatible with the raw instance — TypeScript can't tell the difference, and it's safe to register, hand out, or persist as if it were the original.

      The Proxy's get-trap routes method invocations and getter reads through the interceptor pipeline. Property writes pass through unchanged (no set trap in v1).

      Type Parameters

      Parameters

      • stuff: T

      Returns T