HTTPVersion

public struct HTTPVersion

The version of HTTP protocol.

HTTP uses a “major.minor” numbering scheme to indicate versions of the protocol.

  • The “major” part of the protocol version.

    Declaration

    Swift

    public let major: UInt16
  • The “minor” part of the protocol version.

    Declaration

    Swift

    public let minor: UInt16