ProxyType

public indirect enum ProxyType : Codable, Equatable, FunctionResult, TDEnum, EquatableEnum

Describes the type of a proxy server

  • A SOCKS5 proxy server

    • username: Username for logging in; may be empty
    • password: Password for logging in; may be empty

    Declaration

    Swift

    case socks5(username: String, password: String)
  • A HTTP transparent proxy server

    • username: Username for logging in; may be empty
    • password: Password for logging in; may be empty
    • httpOnly: Pass true, if the proxy supports only HTTP requests and doesn’t support transparent TCP connections via HTTP CONNECT method

    Declaration

    Swift

    case http(username: String, password: String, httpOnly: Bool)
  • An MTProto proxy server

    • secret: The proxy’s secret in hexadecimal encoding

    Declaration

    Swift

    case mtproto(secret: String)