struct StaticAssets::ByteRange

Overview

Resolved inclusive byte interval for HTTP 206 Partial Content responses.

Defined in:

static_assets/range.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(first : Int64, last : Int64) #

[View source]

Instance Method Detail

def content_range(total : Int64) : String #

Formats the Content-Range response header value for total bytes.


[View source]
def first : Int64 #

[View source]
def last : Int64 #

[View source]
def length : Int64 #

Number of bytes covered by this inclusive range.


[View source]