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

#passwordString?

Password for logging in; may be empty.

Returns:

  • (String, nil)

    the current value of password



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

def password
  @password
end

#usernameString?

Username for logging in; may be empty.

Returns:

  • (String, nil)

    the current value of username



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

def username
  @username
end