Table of Contents

Class RangeRequestEvaluator

Namespace
Trellis.Asp
Assembly
Trellis.Asp.dll

Evaluates RFC 9110 ยง14 Range request headers. Only supports byte ranges. Non-GET requests are treated as Full (Range ignored).

public static class RangeRequestEvaluator
Inheritance
RangeRequestEvaluator
Inherited Members

Methods

Evaluate(HttpRequest, long)

Evaluates the Range header against the representation's complete length.

public static RangeOutcome Evaluate(HttpRequest request, long completeLength)

Parameters

request HttpRequest

The HTTP request.

completeLength long

The total size of the representation in bytes.

Returns

RangeOutcome

A RangeOutcome indicating how to respond.