haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.ProxyType

Synopsis

Documentation

data ProxyType Source #

Describes the type of proxy server

Constructors

ProxyTypeSocks5

A SOCKS5 proxy server

Fields

ProxyTypeHttp

A HTTP transparent proxy server

Fields

  • username :: Maybe Text

    Username for logging in; may be empty

  • password :: Maybe Text

    Password for logging in; may be empty

  • http_only :: Maybe Bool

    Pass true if the proxy supports only HTTP requests and doesn't support transparent TCP connections via HTTP CONNECT method

ProxyTypeMtproto

An MTProto proxy server

Fields

Instances

Instances details
FromJSON ProxyType Source # 
Instance details

Defined in TD.Data.ProxyType

ToJSON ProxyType Source # 
Instance details

Defined in TD.Data.ProxyType

Show ProxyType Source # 
Instance details

Defined in TD.Data.ProxyType

Eq ProxyType Source # 
Instance details

Defined in TD.Data.ProxyType

ShortShow ProxyType Source # 
Instance details

Defined in TD.Data.ProxyType