haskell-tdlib-2.1.28.0: Binding to the Telegram Database Library
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

ProxyTypeWeb

A web proxy server. MTProto traffic goes through an HTTPS relay page hosted by the application in a hidden web view; see updateWebProxyCarrierOpened. The proxy server must be a domain name and the port must be 443

Fields

  • path :: Maybe Text

    Base path of the relay on the server, without leading and trailing slashes; may be empty. Consists of 0-128 characters; each "/"-separated segment must match [A-Za-z0-9][A-Za-z0-9_-]*

  • secret :: Maybe Text

    The proxy's secret in hexadecimal encoding

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