Initializervapor 4.114.1Vapor->NIOHTTP1
init(unit:range:)
HTTPHeaders+ContentRange.swift:78init(unit: RangeUnit, range: HTTPHeaders.ContentRange.Value)
init(unit: RangeUnit, range: HTTPHeaders.ContentRange.Value)
s8NIOHTTP111HTTPHeadersV5VaporE12ContentRangeV4unit5rangeAfcDE0E4UnitO_AF5ValueOtcfc
What are these?6DSKM
import NIOHTTP1
import Vapor
Vapor 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 ContentRange
Represents the HTTP Content-Range
response header.
struct HTTPHeaders
A representation of a block of HTTP header fields.
enum RangeUnit
The unit in which ContentRange
s and Range
s are specified. This is usually bytes
. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range
enum Value
Represents the value of the Content-Range
request header.
let range: HTTPHeaders.ContentRange.Value
let unit: RangeUnit
func serialize() -> String