Instance Propertyvapor 4.114.1Vapor->NIOHTTP1
unit
HTTPHeaders+ContentRange.swift:59let unit: RangeUnit
let unit: RangeUnit
s8NIOHTTP111HTTPHeadersV5VaporE12ContentRangeV4unitAcDE0E4UnitOvp
What are these?8BH9X
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
init(unit: RangeUnit, range: HTTPHeaders.ContentRange.Value)
let range: HTTPHeaders.ContentRange.Value
func serialize() -> String
enum Value
Represents the value of the Content-Range
request header.