class StaticAssets::Handler

Overview

HTTP::Handler for serving production static assets with immutable caching, ETag / 304 Not Modified, Brotli/Gzip precompression, Accept-Ranges / 206, and strict path-traversal rejection.

Included Modules

Defined in:

static_assets/handler.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(config : Config = Config.new, store : Store | Nil = nil) #

[View source]

Instance Method Detail

def call(context : HTTP::Server::Context) : Nil #

[View source]
def config : Config #

[View source]
def store : Store #

[View source]