HttpRangeRequest

io.quartz.util.HttpRangeRequest

Utility for handling HTTP Range requests according to RFC 7233. Provides functionality to create appropriate HTTP responses for regular and range requests for file resources.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def makeResponse(req: Request, file: File, rangedType: ContentType, BLOCK_SIZE: Int): Response

Creates an HTTP response for a file resource, handling range requests if present.

Creates an HTTP response for a file resource, handling range requests if present.

Value parameters

BLOCK_SIZE

The chunk size for streaming the file content (in bytes)

file

The file to be served

rangedType

The content type that should support range requests

req

The HTTP request that may contain Range header

Attributes

Returns

An HTTP Response object configured based on the request and range header