struct
StaticAssets::ByteRange
- StaticAssets::ByteRange
- Struct
- Value
- Object
Overview
Resolved inclusive byte interval for HTTP 206 Partial Content responses.
Defined in:
static_assets/range.crConstructors
Instance Method Summary
-
#content_range(total : Int64) : String
Formats the
Content-Rangeresponse header value fortotalbytes. - #first : Int64
- #last : Int64
-
#length : Int64
Number of bytes covered by this inclusive range.
Constructor Detail
Instance Method Detail
def content_range(total : Int64) : String
#
Formats the Content-Range response header value for total bytes.