class Consul::Async::JSONConfiguration
Configuration to apply to JSONEndpoints
Attributes
debug[R]
enable_gzip_compression[R]
headers[R]
json_body[R]
min_duration[R]
request_method[R]
retry_duration[R]
retry_on_non_diff[R]
tls_cert_chain[R]
tls_private_key[R]
tls_verify_peer[R]
url[R]
Public Class Methods
new(url:, debug: { network: false }, retry_duration: 10, min_duration: 10, retry_on_non_diff: 10, request_method: :get, json_body: nil, headers: {}, enable_gzip_compression: true, tls_cert_chain: nil, tls_private_key: nil, tls_verify_peer: true)
click to toggle source
# File lib/consul/async/json_endpoint.rb, line 13 def initialize(url:, debug: { network: false }, retry_duration: 10, min_duration: 10, retry_on_non_diff: 10, request_method: :get, json_body: nil, headers: {}, enable_gzip_compression: true, tls_cert_chain: nil, tls_private_key: nil, tls_verify_peer: true) @url = url @debug = debug @enable_gzip_compression = enable_gzip_compression @retry_duration = retry_duration @min_duration = min_duration @retry_on_non_diff = retry_on_non_diff @request_method = request_method @json_body = json_body @headers = headers @tls_cert_chain = tls_cert_chain @tls_private_key = tls_private_key @tls_verify_peer = tls_verify_peer end
Public Instance Methods
create(_url)
click to toggle source
# File lib/consul/async/json_endpoint.rb, line 39 def create(_url) # here we assume we don't need to cache configuration self end