OptionalresourceAdvisory NAP-RESOURCE introspection exposed through resource.info.
Provide a static snapshot or a resolver when the shell wants to disclose configured schemes and coarse limits. Scheme disclosure is advisory and is never used as fetch authorization. Omit to disclose no schemes or limits.
Runtime-supplied resource resolver. Receives the requested URL and returns
a byte-classified Response.
The runtime owns scheme dispatch and every NAP-RESOURCE policy decision.
The returned content-type must describe the runtime-classified bytes, not
an untrusted upstream header. Throw ResourceServiceError to preserve a
canonical protocol error classification.
The URL from the resource.bytes request
Read-only method, request-scoped AbortSignal, and actual-destination approval callback
OptionalstreamHost-only streaming resolver. Apply source safety policy before returning classified bytes; never exposed over the resource wire API.
Options for
createResourceService(options-as-bridge per v1.6 Decision 18).fetchis the only required field. Kehto does not select a runtime's scheme or origin policy.