RevalidationWebhookHandler class
Signed webhook endpoint that schedules revalidation against the configured site's dependency index. The payload never supplies HTML or database data.
Constructors
-
RevalidationWebhookHandler({required HybridRevalidationScheduler scheduler, required WebhookReplayStore replayStore, required String tenantId, required List<
int> secret, DateTime clock()?, Duration maxClockSkew = const Duration(minutes: 5), int maxBodyBytes = 16384, InMemoryWebhookRateLimiter? rateLimiter})
Properties
- clock → DateTime Function()?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxBodyBytes → int
-
final
- maxClockSkew → Duration
-
final
- rateLimiter → InMemoryWebhookRateLimiter
-
final
- replayStore → WebhookReplayStore
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scheduler → HybridRevalidationScheduler
-
final
-
secret
→ List<
int> -
final
- tenantId → String
-
final
Methods
-
createShelfHandler(
) → Handler - Shelf handler that caps streamed request bodies before buffering them.
-
handle(
ServerRequest request) → Future< ServerResponse> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited