Version
public struct Version : Encodable, Equatable
extension Version: CustomStringConvertible
Represents an HTTP version.
-
A major HTTP version.
Declaration
Swift
public var major: Int
-
A minor HTTP version.
Declaration
Swift
public var minor: Int
-
Initializes a new instance with major and minor versions.
Declaration
Swift
public init(major: Int = 1, minor: Int = 1)
Parameters
major
A major HTTP version. Defaults to
1
.minor
A minor HTTP version. Defaults to
1
. -
Represents a major HTTP version.
See moreDeclaration
Swift
public enum Major : Int
-
See
CustomStringConvertible
.Declaration
Swift
public var description: String { get }