Enumeration
HTTPHeaders.Range.Value
Represents one value of the
Range request header.enum Value
Overview
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Range
Topics
Enumeration Cases
HTTPHeaders.Range.Value.start(value:)Integer with single trailing dash, e.g.25-HTTPHeaders.Range.Value.tail(value:)Integer with single leading dash, e.g.-25HTTPHeaders.Range.Value.within(start:end:)Two integers with single dash in between, e.g.20-25
Instance Methods
asResponseContentRange(limit:)Converts thisHTTPHeaders.Range.Valueto aHTTPHeaders.ContentRange.Valuewith the givenlimit.serialize()SerializesHTTPHeaders.Range.Valueto a string for use within the HTTPRangeheader.
Type Methods
from(requestStr:)Parses a string representing a requested range in one of the following formats:
Relationships
Conforms To
Swift.EquatableSwift.SendableSwift.SendableMetatype