HTTPVersion

public struct HTTPVersion : Equatable

A structure representing a HTTP version.

  • Declaration

    Swift

    public static func ==(lhs: HTTPVersion, rhs: HTTPVersion) -> Bool
  • Create a HTTP version.

    Declaration

    Swift

    public init(major: UInt16, minor: UInt16)

    Parameters

    major

    The major version number.

    minor

    The minor version number.

  • The major version number.

    Declaration

    Swift

    public let major: UInt16
  • The minor version number.

    Declaration

    Swift

    public let minor: UInt16
  • Declaration

    Swift

    public var description: String { get }