The push prediction manager. Thread-safe via IO.Ref.
- settings : PushSettings
Settings.
The push table: maps page paths to push resources.
Instances For
Create a new push manager.
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Network.Wai.Middleware.Push.Referer.PushManager.record
(mgr : PushManager)
(referer resource : String)
:
Record a resource request with its referer, updating the push table. When a resource is requested with a Referer header pointing to a page, we learn that the page needs that resource.
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Network.Wai.Middleware.Push.Referer.PushManager.getPushes
(mgr : PushManager)
(pagePath : String)
:
Get the list of resources to push for a given page path.