Class: TD::Types::ProxyType::Http

Inherits:
TD::Types::ProxyType show all
Defined in:
lib/tdlib/types/proxy_type/http.rb

Overview

A HTTP transparent proxy server.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#http_onlyBoolean

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

Returns:

  • (Boolean)

    the current value of http_only



8
9
10
# File 'lib/tdlib/types/proxy_type/http.rb', line 8

def http_only
  @http_only
end

#passwordTD::Types::String?

Password for logging in; may be empty.

Returns:

  • (TD::Types::String, nil)

    the current value of password



8
9
10
# File 'lib/tdlib/types/proxy_type/http.rb', line 8

def password
  @password
end

#usernameTD::Types::String?

Username for logging in; may be empty.

Returns:

  • (TD::Types::String, nil)

    the current value of username



8
9
10
# File 'lib/tdlib/types/proxy_type/http.rb', line 8

def username
  @username
end