module LaunchDarkly::Impl::Util
Public Class Methods
current_time_millis()
click to toggle source
# File lib/ldclient-rb/impl/util.rb, line 5 def self.current_time_millis (Time.now.to_f * 1000).to_i end
default_http_headers(sdk_key, config)
click to toggle source
# File lib/ldclient-rb/impl/util.rb, line 9 def self.default_http_headers(sdk_key, config) ret = { "Authorization" => sdk_key, "User-Agent" => "RubyClient/" + LaunchDarkly::VERSION } if config.wrapper_name ret["X-LaunchDarkly-Wrapper"] = config.wrapper_name + (config.wrapper_version ? "/" + config.wrapper_version : "") end ret end