Skip to main content

dio_server_clock 0.1.0 copy "dio_server_clock: ^0.1.0" to clipboard
dio_server_clock: ^0.1.0 copied to clipboard

Tamper-resistant server time for Dio apps. Reads the HTTP Date header from responses you already make and anchors it to a monotonic clock.

Changelog #

All notable changes to dio_server_clock will be documented in this file.

[Unreleased] #

0.1.0 2026-Oct-31 #

Added #

  • ServerClock: server time anchored to a monotonic stopwatch, with now, nowIn, isSynced, deviceSkew, uncertainty, onAnchor, invalidate and reset
  • ServerClockInterceptor: samples the HTTP Date header from Dio responses, including error responses, with pathPrefixes, include and isFromCache filters
  • isCacheHit: detects cached responses from Age, Cache-Status (RFC 9211), X-Cache and CF-Cache-Status headers
  • Supports Dio 4 and 5; pure Dart, no Flutter dependency
1
likes
160
points
825
downloads

Documentation

Documentation
API reference

Publisher

verified publisherbalu.dev

Weekly Downloads

Tamper-resistant server time for Dio apps. Reads the HTTP Date header from responses you already make and anchors it to a monotonic clock.

Homepage
Repository (GitHub)
View/report issues

Topics

#dio #time #clock #http #interceptor

License

MIT (license)

Dependencies

clock, dio, http_parser

More

Packages that depend on dio_server_clock