module StaticAssets::Store

Overview

Storage backend abstraction for StaticAssets::Handler.

Direct including types

Defined in:

static_assets/store.cr

Instance Method Summary

Instance Method Detail

def directory?(relative_path : String) : Bool #

Returns true if relative_path resolves to a directory (for index_file fallback).


[View source]
abstract def resolve(relative_path : String, accept_encoding : String | Nil, precompressed : Bool = true) : ResolvedAsset | Nil #

Resolves relative_path (slash-delimited, without leading /) and selects the preferred representation according to accept_encoding.


[View source]