ProxyTypeWeb class

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

Inheritance
Available extensions
Annotations
  • @immutable

Constructors

ProxyTypeWeb({required String path, String? secret})
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
path → String
path 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_-*
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
secret → String?
secret The MTProto proxy secret in hexadecimal encoding; must be 16 bytes long, optionally prefixed with the byte 0xdd
final

Methods

copyWith({String? path, String? secret}) → ProxyTypeWeb

Available on ProxyTypeWeb, provided by the ProxyTypeWebExtensions extension

getConstructor() → String
override
map<TResult extends Object?>({required TResult socks5(ProxyTypeSocks5 value), required TResult http(ProxyTypeHttp value), required TResult mtproto(ProxyTypeMtproto value), required TResult web(ProxyTypeWeb value)}) → TResult

Available on ProxyType, provided by the ProxyTypeExtensions extension

maybeMap<TResult extends Object?>({TResult socks5(ProxyTypeSocks5 value)?, TResult http(ProxyTypeHttp value)?, TResult mtproto(ProxyTypeMtproto value)?, TResult web(ProxyTypeWeb value)?, required TResult orElse()}) → TResult

Available on ProxyType, provided by the ProxyTypeExtensions extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(Map<String, dynamic>? json) → ProxyTypeWeb?
Inherited by: ProxyTypeHttp ProxyTypeMtproto ProxyTypeSocks5 ProxyTypeWeb
override

Constants

constructor → const String