Class: KineticSdk::Utils::KineticHttp
- Inherits:
-
Object
- Object
- KineticSdk::Utils::KineticHttp
- Includes:
- KineticHttpUtils
- Defined in:
- lib/kinetic_sdk/utils/kinetic-http.rb
Overview
The KineticHttp class provides functionality to make generic HTTP requests.
Instance Attribute Summary collapse
-
#password ⇒ Object
readonly
The password used in the Basic Authentication header.
-
#username ⇒ Object
readonly
The username used in the Basic Authentication header.
Instance Method Summary collapse
-
#initialize(username = nil, password = nil, http_options = {}) ⇒ KineticHttp
constructor
Constructor.
Methods included from KineticHttpUtils
#default_headers, default_headers, #default_jwt_headers, default_jwt_headers, #delete, #encode, #gateway_retry_delay, #gateway_retry_limit, #get, #head, #header_accept_json, header_accept_json, #header_basic_auth, header_basic_auth, header_bearer_auth, #header_bearer_auth, #header_content_json, header_content_json, header_user_agent, #header_user_agent, #max_redirects, #mimetype, #patch, #post, #post_multipart, #put, #redirect_url, #stream_download_to_file
Constructor Details
#initialize(username = nil, password = nil, http_options = {}) ⇒ KineticHttp
Constructor
802 803 804 805 806 |
# File 'lib/kinetic_sdk/utils/kinetic-http.rb', line 802 def initialize(username=nil, password=nil, ={}) @username = username @password = password @options = end |
Instance Attribute Details
#password ⇒ Object (readonly)
The password used in the Basic Authentication header
789 790 791 |
# File 'lib/kinetic_sdk/utils/kinetic-http.rb', line 789 def password @password end |
#username ⇒ Object (readonly)
The username used in the Basic Authentication header
787 788 789 |
# File 'lib/kinetic_sdk/utils/kinetic-http.rb', line 787 def username @username end |