admissionRateLimiter | Admission through Effect's RateLimiter, limit misses a client per window, over the limiter's store (RateLimiter.layerStoreMemory for one process, Redis for… |
factsOf | The facts of an image a page names only by URL (a rich-text image, a CMS block), so it is drawn with its box and placeholder like any other: its original… |
handlers | The handlers of MediaApi's one route. The path is decoded against the space; a variant kept is served as kept, and one the request already holds… |
headersFor | Every response's headers, decided in one place, so the server, the edge and a static host cannot disagree. A variant's URL names its bytes, so it is kept… |
headersRule | The _headers rule (Cloudflare Pages, Netlify) a host needs for variants written out as files: what the server itself sends a variant, from the same… |
layer | The media server as an Effect HTTP application: its route registered with the HttpRouter, needing Originals, Transformer and Variants. |
limitTransforms | A Transformer that runs at most concurrency transforms at once, the rest waiting their turn: encoding is CPU work, and a burst of misses should queue, not… |
materialize | Every hosted variant the built pages name, made through fetch (the media server's own handler, serveFetch) and returned as files at their own paths, for… |
originalsKeyValueStore | Originals in the application's KeyValueStore, each under its content hash after prefix. A store that fails is a defect, not a missing original: the original… |
serveFetch | The media server as a Worker's fetch handler, its services from each environment's bindings. It answers its own route and 404s anything else, so route to it… |
serveUploadFetch | The upload route as a Worker's fetch handler, its services from each environment's bindings (uploadsR2, inspectorImages, and the application's… |
uploadHandlers | The upload route's handler. It asks the UploadPolicy first; takes only an image/* body, which a browser cannot send to another origin without a preflight… |
uploadLayer | The upload route as an Effect HTTP application, registered with the HttpRouter beside the variant server's, needing Uploads, an Inspector and the UploadPolicy. |
uploadsKeyValueStore | Uploads kept in the application's KeyValueStore, each under its content hash after prefix: the same keys originalsKeyValueStore reads, with the same prefix.… |
variantsKeyValueStore | Variants kept in the application's KeyValueStore, under prefix: KeyValueStore.layerMemory for tests, layerFileSystem on a disk, layerSql over SQLite or D1. |