Class: TencentCloud::Common::HttpProfile
- Inherits:
-
Object
- Object
- TencentCloud::Common::HttpProfile
- Defined in:
- lib/tencentcloud-sdk-common/profile/http_profile.rb
Overview
basic httpprofile
Instance Attribute Summary collapse
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#keep_alive ⇒ Object
Returns the value of attribute keep_alive.
-
#proxy ⇒ Object
Returns the value of attribute proxy.
-
#req_method ⇒ Object
Returns the value of attribute req_method.
-
#req_timeout ⇒ Object
Returns the value of attribute req_timeout.
-
#scheme ⇒ Object
Returns the value of attribute scheme.
Instance Method Summary collapse
-
#initialize(scheme = 'https', endpoint = nil, req_method = 'POST', req_timeout = 60, keep_alive = false, proxy = nil) ⇒ HttpProfile
constructor
Initializes a new HttpProfile with default values.
Constructor Details
#initialize(scheme = 'https', endpoint = nil, req_method = 'POST', req_timeout = 60, keep_alive = false, proxy = nil) ⇒ HttpProfile
Initializes a new HttpProfile with default values
17 18 19 20 21 22 23 24 25 |
# File 'lib/tencentcloud-sdk-common/profile/http_profile.rb', line 17 def initialize(scheme = 'https', endpoint = nil, req_method = 'POST', req_timeout = 60, keep_alive = false, proxy = nil) @scheme = scheme @endpoint = endpoint @req_method = req_method @req_timeout = req_timeout @keep_alive = keep_alive @proxy = proxy end |
Instance Attribute Details
#endpoint ⇒ Object
Returns the value of attribute endpoint.
7 8 9 |
# File 'lib/tencentcloud-sdk-common/profile/http_profile.rb', line 7 def endpoint @endpoint end |
#keep_alive ⇒ Object
Returns the value of attribute keep_alive.
7 8 9 |
# File 'lib/tencentcloud-sdk-common/profile/http_profile.rb', line 7 def keep_alive @keep_alive end |
#proxy ⇒ Object
Returns the value of attribute proxy.
7 8 9 |
# File 'lib/tencentcloud-sdk-common/profile/http_profile.rb', line 7 def proxy @proxy end |
#req_method ⇒ Object
Returns the value of attribute req_method.
7 8 9 |
# File 'lib/tencentcloud-sdk-common/profile/http_profile.rb', line 7 def req_method @req_method end |
#req_timeout ⇒ Object
Returns the value of attribute req_timeout.
7 8 9 |
# File 'lib/tencentcloud-sdk-common/profile/http_profile.rb', line 7 def req_timeout @req_timeout end |
#scheme ⇒ Object
Returns the value of attribute scheme.
7 8 9 |
# File 'lib/tencentcloud-sdk-common/profile/http_profile.rb', line 7 def scheme @scheme end |