push
github
0 of 18 new or added lines in 3 files covered. (0.0%)
1924 existing lines in 56 files now uncovered.0 of 2082 relevant lines covered (0.0%)
0.0 hits per line
UNCOV
1
|
require 'unleash/bootstrap/provider/base'
|
× |
2 |
|
|
UNCOV
3
|
module Unleash |
× |
UNCOV
4
|
module Bootstrap |
× |
UNCOV
5
|
module Provider |
× |
UNCOV
6
|
class FromUrl < Base |
× |
7 |
# @param url [String]
|
|
8 |
# @param headers [Hash, nil] HTTP headers to use. If not set, the unleash client SDK ones will be used.
|
|
UNCOV
9
|
def self.read(url, headers = nil) |
× |
UNCOV
10
|
response = Unleash::Util::Http.get(URI.parse(url), nil, headers) |
× |
11 |
|
|
UNCOV
12
|
return nil if response.code != '200' |
× |
13 |
|
|
UNCOV
14
|
response.body |
× |
15 |
end
|
|
16 |
end
|
|
17 |
end
|
|
18 |
end
|
|
19 |
end
|