struct
StaticAssets::ResolvedAsset
- StaticAssets::ResolvedAsset
- Struct
- Value
- Object
Overview
Resolved asset representation selected for a given request and Accept-Encoding.
Defined in:
static_assets/store.crConstructors
Instance Method Summary
- #bytes : Bytes | Nil
- #content_type : String
- #encoding : Encoding
- #etag : String
- #file_path : String | Nil
- #has_compressed_variants? : Bool
- #last_modified : Time
- #size : Int64
-
#write_to(io : IO, offset : Int64 = 0_i64, length : Int64 | Nil = nil) : Nil
Streams the full representation or a byte sub-range directly to
io.
Constructor Detail
def self.new(content_type : String, size : Int64, last_modified : Time, etag : String, encoding : Encoding, has_compressed_variants : Bool, file_path : String | Nil = nil, bytes : Bytes | Nil = nil)
#
Instance Method Detail
Streams the full representation or a byte sub-range directly to io.