HTTPVersion

public struct HTTPVersion

Version number of the HTTP Protocol

  • Major version component.

    Declaration

    Swift

    public private(set) var major: Int
  • Minor version component.

    Declaration

    Swift

    public private(set) var minor: Int
  • Creates an HTTP version.

    Declaration

    Swift

    public init(major: Int, minor: Int)