Class: CocRb::Check

Inherits:
Settings show all
Defined in:
lib/cocRb/utility.rb

Class Method Summary collapse

Methods inherited from Settings

get

Class Method Details

.get_HeadersObject

This method gets headers for a particular endpoint. Takes the requestUrl in the configuration block.



41
42
43
44
45
# File 'lib/cocRb/utility.rb', line 41

def self.get_Headers
       get
       res = @conn.get(CocRb.configuration.url)
       res.headers
end