Create metadata-driven rate-limit hooks.
The hook reads contract.metadata.rateLimit. Global and IP-scoped limits run in onRequest before context creation; user-scoped limits run in beforeHandle after ctx.actor is available. Exceeded limits throw the framework TooManyRequests app error.
contract.metadata.rateLimit
onRequest
beforeHandle
ctx.actor
TooManyRequests
Optional key builders and client-IP resolver.
A server hook backed by ctx.ports.rateLimit.
ctx.ports.rateLimit
Create metadata-driven rate-limit hooks.
The hook reads
contract.metadata.rateLimit. Global and IP-scoped limits run inonRequestbefore context creation; user-scoped limits run inbeforeHandleafterctx.actoris available. Exceeded limits throw the frameworkTooManyRequestsapp error.