RateLimitPartitionFactory
RateLimitPartitionFactory<
TRequest> = (context) =>string|undefined
Defined in: packages/pipeline-rate-limit/src/helpers/partitioned-key.ts:23
Resolves the stable caller/partition identifier used by createPartitionedRateLimitKeyFactory.
Typical values are an authenticated user ID, account ID, API-client ID, or a
trusted transport identity copied into context.items by an earlier behavior.
Type Parameters
Section titled “Type Parameters”TRequest
Section titled “TRequest”TRequest = unknown
The request class the handler receives, which types
context.request. The factory does not check it at run time.
Parameters
Section titled “Parameters”context
Section titled “context”IPipelineContext<TRequest>
Returns
Section titled “Returns”string | undefined