Enumerationvapor 4.114.1Vapor->NIOHTTP1
Value
Represents the value of the Content-Range request header.
enum ValueSee https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range
Represents the value of the Content-Range request header.
enum ValueSee https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range
import NIOHTTP1import VaporVapor is a framework for building server applications, APIs and websites in Swift. It provides a safe, performant and scalable foundation for building large complex backends.
struct ContentRangeRepresents the HTTP Content-Range response header.
struct HTTPHeadersA representation of a block of HTTP header fields.
case within(start: Int, end: Int)case withinWithLimit(start: Int, end: Int, limit: Int)case any(size: Int)init(unit: RangeUnit, range: HTTPHeaders.ContentRange.Value) let range: HTTPHeaders.ContentRange.Valuelet unit: RangeUnitfunc serialize() -> String protocol EquatableA type that can be compared for value equality.
static func from<T>(responseStr: T) -> HTTPHeaders.ContentRange.Value? where T : StringProtocol Parses a string representing a response range in one of the following formats:
func serialize() -> String Serializes HTTPHeaders.Range.Value to a string for use within the HTTP Content-Range header.
static func != (lhs: Self, rhs: Self) -> Bool Returns a Boolean value indicating whether two values are not equal.