HTTPVersion

public struct HTTPVersion : Equatable

A structure representing a HTTP version.

  • Create a HTTP version.

    Declaration

    Swift

    public init(major: Int, minor: Int)

    Parameters

    major

    The major version number.

    minor

    The minor version number.

  • The major version number.

    Declaration

    Swift

    public var major: Int { get set }
  • The minor version number.

    Declaration

    Swift

    public var minor: Int { get set }