Sha256: dd65ab43813b4779d786300848955439751d6cf91accd635f305a7d557e5e00f
Contents?: true
Size: 496 Bytes
Versions: 34
Compression:
Stored size: 496 Bytes
Contents
require 'unleash/bootstrap/provider/base' module Unleash module Bootstrap module Provider class FromUrl < Base # @param url [String] # @param headers [Hash, nil] HTTP headers to use. If not set, the unleash client SDK ones will be used. def self.read(url, headers = nil) response = Unleash::Util::Http.get(URI.parse(url), nil, headers) return nil if response.code != '200' response.body end end end end end
Version data entries
34 entries across 34 versions & 1 rubygems